do not try to install prereq in case of destroy_all

This commit is contained in:
Sergey Bubnov 2018-11-07 11:23:37 +04:00
parent 7908e77de1
commit a0c532ebf6

View File

@ -19,12 +19,6 @@
- {role: inventory, bootstrap: yes, tags: [ ]}
tags: [ provision ]
- name: configure prerequrements
hosts: stack
gather_facts: false
roles:
- {role: prereq, tags: [ ]}
- name: prepare nodes
hosts: stack
gather_facts: false
@ -34,6 +28,9 @@
pre_tasks:
- meta: end_play
when: destroy_all is defined and destroy_all
- name: install prereqs
raw: 'apt-get update && apt-get install -qy python2.7\(distutils\)'
when: destroy_all is not defined or not destroy_all
- name: gather facts
setup:
when: destroy_all is not defined or not destroy_all