mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2025-07-28 13:46:36 +02:00
Comply with Ansible 2.4 new include
method
Since the variables are computed in parent playbook, I reckon using `import_tasks` (static) is more appropriate than `include_tasks` (dynamic). The ansible docs are very unclear on it: http://docs.ansible.com/ansible/latest/playbooks_reuse.html#differences-between-static-and-dynamic
This commit is contained in:
parent
2b507a374e
commit
ca7f0148a2
@ -1,8 +1,8 @@
|
||||
---
|
||||
- include: setup-RedHat.yml
|
||||
- import_tasks: setup-RedHat.yml
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
- include: setup-Debian.yml
|
||||
- import_tasks: setup-Debian.yml
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: Install Docker.
|
||||
@ -14,5 +14,5 @@
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
- include: docker-compose.yml
|
||||
- import_tasks: docker-compose.yml
|
||||
when: docker_install_compose
|
||||
|
Loading…
Reference in New Issue
Block a user