Skip to content
Snippets Groups Projects
Commit ffbad722 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#72 Replace include_tasks with import_tasks

parent 2b500e90
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@
state: present
with_items: '{{ ec2.instance_ids }}'
- include_tasks: inithostip.yml hostip='{{ inithostip }}'
- import_tasks: inithostip.yml hostip='{{ inithostip }}'
when: inithostip is defined
......
---
# file: inithost.yml
- include_tasks: "cleanup.yml"
- import_tasks: "cleanup.yml"
......@@ -7,8 +7,8 @@
- block:
- include_tasks: "{{ cloud|default('none') }}/{{ mode }}.yml"
- import_tasks: "{{ cloud|default('none') }}/{{ mode }}.yml"
- include_tasks: "{{ mode }}.yml"
- import_tasks: "{{ mode }}.yml"
when: '"cloud" not in excluded_roles'
---
# file: removehost.yml
- include_tasks: "cleanup.yml"
- import_tasks: "cleanup.yml"
when: are_you_sure == "YES"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment