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: [ ]} - {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

View File

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