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