inventory_dir cannot be used with Tower

This commit is contained in:
Cedric Girard 2018-07-27 10:59:41 +02:00
parent 789bf900d0
commit 029547ea7b
5 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
#default is linear #default is linear
#strategy: free #strategy: free
vars_files: vars_files:
- "{{inventory_dir}}/vars/vars.yml" - "{{playbook_dir}}/vars/vars.yml"
tasks: tasks:
- include_tasks: tasks/copy_files.yml - include_tasks: tasks/copy_files.yml
- include_tasks: tasks/delete_files.yml - include_tasks: tasks/delete_files.yml

View File

@ -1,7 +1,7 @@
- hosts: devoteam - hosts: devoteam
gather_facts: no gather_facts: no
vars_files: vars_files:
- "{{inventory_dir}}/vars/vars.yml" - "{{playbook_dir}}/vars/vars.yml"
tasks: tasks:
- name: "Copy files from {{ dir_src }} to {{ dir_dst }}" - name: "Copy files from {{ dir_src }} to {{ dir_dst }}"
copy: copy:

View File

@ -1,6 +1,6 @@
- hosts: alpine - hosts: alpine
gather_facts: no gather_facts: no
vars_files: vars_files:
- "{{inventory_dir}}/vars/vars.yml" - "{{playbook_dir}}/vars/vars.yml"
tasks: tasks:
- include_tasks: tasks/copy_files.yml - include_tasks: tasks/copy_files.yml

View File

@ -1,6 +1,6 @@
- hosts: alpine - hosts: alpine
gather_facts: no gather_facts: no
vars_files: vars_files:
- "{{inventory_dir}}/vars/vars.yml" - "{{playbook_dir}}/vars/vars.yml"
tasks: tasks:
- include_tasks: tasks/delete_files.yml - include_tasks: tasks/delete_files.yml