Skip to content

Commit

Permalink
[infra-dns] Add retries to route53 call (#7612)
Browse files Browse the repository at this point in the history
Migrating most of the labs to use Route53 instead to use nsupdate, is causing to reach some limits
  • Loading branch information
agonzalezrh authored Feb 7, 2024
1 parent a129edd commit 0f8ef62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible/roles-infra/infra-dns/tasks/nested_loop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
zone: "{{ cluster_dns_zone }}"
value: "{{ vars[infra_dns_inventory_var] | json_query(find_ip_query) }}"
type: A
register: _route53_record
retries: 10
delay: "{{ 60|random(start=5, step=1) }}"
until: _route53_record is succeeded


# When state == absent, don't use inventory var (should not be needed)
Expand Down

0 comments on commit 0f8ef62

Please sign in to comment.