Add retries to 'Set label for route reflector' task (#7645)

This commit is contained in:
forselli-stratio 2021-05-27 21:02:23 +02:00 committed by GitHub
parent 3a37a49690
commit eff1931283
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,3 +9,8 @@
command: >- command: >-
{{ bin_dir }}/calicoctl.sh label node {{ inventory_hostname }} {{ bin_dir }}/calicoctl.sh label node {{ inventory_hostname }}
'i-am-a-route-reflector=true' --overwrite 'i-am-a-route-reflector=true' --overwrite
changed_when: false
register: calico_rr_label
until: calico_rr_label is succeeded
delay: "{{ retry_stagger | random + 3 }}"
retries: 10