gcp lb takes a while to come alive - let's wait 2 minutes and keep trying every 6s
state: list
name: "{{ osgcc_clusterid }}-master-lb-address"
register: master_lb_addrout
+ until: master_lb_addrout.rc == 0
+ retries: 20
+ delay: 6
- name: Get Infra LB IP Address
gcloud_compute_addresses:
state: list
name: "{{ osgcc_clusterid }}-infra-lb-address"
register: infra_lb_addrout
+ until: infra_lb_addrout.rc == 0
+ retries: 20
+ delay: 6
+
- name: Update DNS for GCP Master LB
dyn_record:
