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"
|
||||
hosts: thismachine
|
||||
connection: local
|
||||
|
||||
- name: Include variables
|
||||
include_vars:
|
||||
file: "variables.yml"
|
||||
|
||||
# vars:
|
||||
# users:
|
||||
# - testuser
|
||||
vars_files:
|
||||
- variables.yml
|
||||
|
||||
tasks:
|
||||
- name: change hostname to myserver
|
||||
hostname:
|
||||
name: {{ hostname }}
|
||||
name: "{{ hostname }}"
|
||||
|
||||
- name: add myself to /etc/hosts
|
||||
lineinfile:
|
||||
|
|
Loading…
Reference in a new issue