fix variables loading in common
This commit is contained in:
parent
2d15791ead
commit
523fd3e2ed
1 changed files with 3 additions and 9 deletions
12
common.yml
12
common.yml
|
@ -3,19 +3,13 @@
|
||||||
- name: "common config"
|
- name: "common config"
|
||||||
hosts: thismachine
|
hosts: thismachine
|
||||||
connection: local
|
connection: local
|
||||||
|
vars_files:
|
||||||
- name: Include variables
|
- variables.yml
|
||||||
include_vars:
|
|
||||||
file: "variables.yml"
|
|
||||||
|
|
||||||
# vars:
|
|
||||||
# users:
|
|
||||||
# - testuser
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: change hostname to myserver
|
- name: change hostname to myserver
|
||||||
hostname:
|
hostname:
|
||||||
name: {{ hostname }}
|
name: "{{ hostname }}"
|
||||||
|
|
||||||
- name: add myself to /etc/hosts
|
- name: add myself to /etc/hosts
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
Loading…
Reference in a new issue