mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
[cloud] Retry WAF actions on WAFStaleDataException (#36405)
Add a util to run functions with AWSRetry to retry on WAFStaleDataExceptions and update ChangeToken for each attempt
This commit is contained in:
committed by
Ryan Brown
parent
9598978e12
commit
f7d79d4789
@@ -481,10 +481,19 @@
|
||||
- debug:
|
||||
msg: "****** TEARDOWN STARTS HERE ******"
|
||||
|
||||
- name: delete the web acl
|
||||
aws_waf_web_acl:
|
||||
name: "{{ resource_prefix }}_web_acl"
|
||||
state: absent
|
||||
purge_rules: yes
|
||||
<<: *aws_connection_info
|
||||
ignore_errors: yes
|
||||
|
||||
- name: remove second WAF rule
|
||||
aws_waf_rule:
|
||||
name: "{{ resource_prefix }}_rule_2"
|
||||
state: absent
|
||||
purge_conditions: yes
|
||||
<<: *aws_connection_info
|
||||
ignore_errors: yes
|
||||
|
||||
@@ -492,6 +501,7 @@
|
||||
aws_waf_rule:
|
||||
name: "{{ resource_prefix }}_rule"
|
||||
state: absent
|
||||
purge_conditions: yes
|
||||
<<: *aws_connection_info
|
||||
ignore_errors: yes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user