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

Replace deprecated "include" directive in Ansible 2.4

parent 6a80b013
Branches
No related tags found
No related merge requests found
...@@ -36,11 +36,11 @@ ...@@ -36,11 +36,11 @@
state: present state: present
with_items: '{{ ec2.instance_ids }}' with_items: '{{ ec2.instance_ids }}'
- include: inithostip.yml hostip='{{ inithostip }}' - include_tasks: inithostip.yml hostip='{{ inithostip }}'
when: inithostip is defined when: inithostip is defined
- include: inithostip.yml hostip='{{ ec2instance.public_ip }}' - include_tasks: inithostip.yml hostip='{{ ec2instance.public_ip }}'
with_items: '{{ ec2.instances }}' with_items: '{{ ec2.instances }}'
loop_control: loop_control:
loop_var: ec2instance loop_var: ec2instance
......
--- ---
# file: inithost.yml # file: inithost.yml
- include: "cleanup.yml" - include_tasks: "cleanup.yml"
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
- block: - block:
- include: "{{ cloud|default('none') }}/{{ mode }}.yml" - include_tasks: "{{ cloud|default('none') }}/{{ mode }}.yml"
- include: "{{ mode }}.yml" - include_tasks: "{{ mode }}.yml"
when: '"cloud" not in excluded_roles' when: '"cloud" not in excluded_roles'
--- ---
# file: removehost.yml # file: removehost.yml
- include: "cleanup.yml" - include_tasks: "cleanup.yml"
when: are_you_sure == "YES" when: are_you_sure == "YES"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment