fix variables loading in common

This commit is contained in:
panda 2020-03-14 11:01:22 +01:00
parent 2d15791ead
commit 523fd3e2ed

View file

@ -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: