Debian Codegraph @

ansible_collections/community/aws/tests/integration/targets/mq/tasks/broker_cleanup.yml

raw
1 - name: cleanup broker
2 mq_broker:
3 broker_name: "{{ broker_name }}"
4 state: "absent"
5 ignore_errors: true
6 when: not ansible_check_mode
7 # we need to wait - otherwise env_cleanup.yml will fail
8 - name: wait until broker deletion is finished
9 mq_broker_info:
10 broker_id: "{{ broker_id }}"
11 register: result
12 # the condition will never be met - instead it wail fail in the end
13 until: result.broker['broker_state'] != 'DELETION_IN_PROGRESS'
14 retries: 15
15 delay: 60
16 ignore_errors: true
17 when: not ansible_check_mode