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

ansible-playbooks/general#72 All includes are now include_tasks and they...

ansible-playbooks/general#72 All includes are now include_tasks and they always have a tag associated
parent f067d9a5
Branches
No related tags found
No related merge requests found
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
state: present state: present
with_items: '{{ ec2.instance_ids }}' with_items: '{{ ec2.instance_ids }}'
- import_tasks: inithostip.yml hostip='{{ inithostip }}' - include_tasks: inithostip.yml hostip='{{ inithostip }}'
tags: 'always'
when: inithostip is defined when: inithostip is defined
...@@ -45,3 +46,4 @@ ...@@ -45,3 +46,4 @@
loop_control: loop_control:
loop_var: ec2instance loop_var: ec2instance
when: inithostip is not defined when: inithostip is not defined
tags: 'always'
--- ---
# file: inithost.yml # file: inithost.yml
- import_tasks: "cleanup.yml" - include_tasks: "cleanup.yml"
tags: 'always'
...@@ -3,12 +3,14 @@ ...@@ -3,12 +3,14 @@
- name: "Cloud Role" - name: "Cloud Role"
set_fact: role_cloud_started=true set_fact: role_cloud_started=true
tags: always tags: 'always'
- block: - block:
- import_tasks: "{{ cloud|default('none') }}/{{ mode }}.yml" - include_tasks: "{{ cloud|default('none') }}/{{ mode }}.yml"
tags: 'always'
- import_tasks: "{{ mode }}.yml" - include_tasks: "{{ mode }}.yml"
tags: 'always'
when: '"cloud" not in excluded_roles' when: '"cloud" not in excluded_roles'
--- ---
# file: removehost.yml # file: removehost.yml
- import_tasks: "cleanup.yml" - include_tasks: "cleanup.yml"
when: are_you_sure == "YES" when: are_you_sure == "YES"
tags: 'always'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment