Browse Source

inventory_dir cannot be used with Tower

master
Cedric Girard 4 years ago
parent
commit
029547ea7b
  1. 2
      playbooks/copy_and_delete.yml
  2. 2
      playbooks/copy_from_dirs.yml
  3. 2
      playbooks/copy_from_dirs_loops.yml
  4. 2
      playbooks/delete_files.yml
  5. 0
      vars/vars.yml

2
playbooks/copy_and_delete.yml

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

2
playbooks/copy_from_dirs.yml

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

2
playbooks/copy_from_dirs_loops.yml

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

2
playbooks/delete_files.yml

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

0
test/vars/vars.yml → vars/vars.yml

Loading…
Cancel
Save