forked from saratov/infra
do not try to install prereq in case of destroy_all
This commit is contained in:
parent
7908e77de1
commit
a0c532ebf6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user