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