Use absolute rather than relative path for config.yml

The relative path is relative to the files/ directory and so the include
breaks if that directory is deleted.

https://groups.google.com/forum/#!topic/ansible-project/MzSZLYhx5AY

Therefore seems more robust to switch to an absolute path making use of
`playbook_dir`.
This commit is contained in:
newtonne 2018-09-10 20:59:29 +01:00
parent 1bb7c60deb
commit 2a0506bbcc

View File

@ -8,7 +8,7 @@
pre_tasks: pre_tasks:
- include_vars: "{{ item }}" - include_vars: "{{ item }}"
with_fileglob: with_fileglob:
- ../config.yml - "{{ playbook_dir }}/config.yml"
tags: ['always'] tags: ['always']
roles: roles: