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