Skip to content

Commit

Permalink
Use absolute rather than relative path for config.yml
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
newtonne committed Sep 10, 2018
1 parent 1bb7c60 commit 2a0506b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
pre_tasks:
- include_vars: "{{ item }}"
with_fileglob:
- ../config.yml
- "{{ playbook_dir }}/config.yml"
tags: ['always']

roles:
Expand Down

0 comments on commit 2a0506b

Please sign in to comment.