forked from saratov/infra
Fix waiting for VMs up
This commit is contained in:
parent
03c8b6ef66
commit
2cdfa7c198
@ -19,13 +19,13 @@
|
||||
- {role: inventory, bootstrap: yes, tags: [ ]}
|
||||
tags: [ provision ]
|
||||
|
||||
- name: Wait for VMs to go up
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- pause:
|
||||
minutes: 10
|
||||
when: destroy_all is not defined or not destroy_all
|
||||
#- name: Wait for VMs to go up
|
||||
# hosts: localhost
|
||||
# gather_facts: false
|
||||
# tasks:
|
||||
# - pause:
|
||||
# minutes: 2
|
||||
# when: destroy_all is not defined or not destroy_all
|
||||
|
||||
- name: prepare nodes
|
||||
hosts: stack
|
||||
|
@ -118,7 +118,7 @@
|
||||
command: "network-get-interfaces"
|
||||
register: res
|
||||
until: res.results | json_query('[] | [?name!=`lo`]."ip-addresses" | [] | [?"ip-address-type"==`ipv4`] | []."ip-address"') | length > 0
|
||||
retries: 30
|
||||
retries: 90
|
||||
delay: 1
|
||||
|
||||
- name: "[{{vm_name}}] register VM's interfaces info"
|
||||
|
Loading…
Reference in New Issue
Block a user