fix end_play behaviour

This commit is contained in:
Sergey Bubnov 2018-11-07 16:49:51 +04:00
parent d3610fdb95
commit 177c0f444c

View File

@ -27,7 +27,7 @@
#strategy: free #strategy: free
pre_tasks: pre_tasks:
- meta: end_play - meta: end_play
when: destroy_all is defined and destroy_all when: destroy_all is defined and destroy_all|bool
- name: install prereqs - name: install prereqs
raw: 'apt-get update && apt-get install -qy python2.7\(distutils\)' raw: 'apt-get update && apt-get install -qy python2.7\(distutils\)'
when: destroy_all is not defined or not destroy_all when: destroy_all is not defined or not destroy_all
@ -43,6 +43,9 @@
hosts: stack hosts: stack
gather_facts: false gather_facts: false
strategy: free strategy: free
pre_tasks:
- meta: end_play
when: destroy_all is defined and destroy_all|bool
tasks: tasks:
- name: put keys to known hosts - name: put keys to known hosts
copy: copy: