issue #477: Ansible 2.3 cannot use when: on an include.

So just use our magic action module to reset the connection instead.
issue510
David Wilson 6 years ago
parent c1a4597e32
commit b6062afe24

@ -17,7 +17,7 @@
MAGIC_ETC_ENV=555 MAGIC_ETC_ENV=555
become: true become: true
- include_tasks: _reset_conn.yml - mitogen_shutdown_all:
when: not is_mitogen when: not is_mitogen
- shell: echo $MAGIC_ETC_ENV - shell: echo $MAGIC_ETC_ENV
@ -31,7 +31,7 @@
state: absent state: absent
become: true become: true
- include_tasks: _reset_conn.yml - mitogen_shutdown_all:
when: not is_mitogen when: not is_mitogen
- shell: echo $MAGIC_ETC_ENV - shell: echo $MAGIC_ETC_ENV

Loading…
Cancel
Save