From 2cdfa7c198493795e11c1060f85376f4da744ea0 Mon Sep 17 00:00:00 2001 From: Andrey Limachko Date: Wed, 9 Mar 2022 04:53:23 +0400 Subject: [PATCH] Fix waiting for VMs up --- provision.yml | 14 +++++++------- roles/pve/tasks/create_vm.yml | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/provision.yml b/provision.yml index 5cf8b29..e73c56b 100644 --- a/provision.yml +++ b/provision.yml @@ -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 diff --git a/roles/pve/tasks/create_vm.yml b/roles/pve/tasks/create_vm.yml index 9c24c2e..232a83a 100644 --- a/roles/pve/tasks/create_vm.yml +++ b/roles/pve/tasks/create_vm.yml @@ -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"