Fix waiting for VMs up

This commit is contained in:
Андрей Лимачко 2022-03-09 04:53:23 +04:00
parent 03c8b6ef66
commit 2cdfa7c198
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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"