|
|
@ -38,25 +38,6 @@ |
|
|
|
until: stack_delete is success |
|
|
|
delay: 4 |
|
|
|
retries: 16 |
|
|
|
|
|
|
|
# NOTE (cloudnull): This is using the CLI command to delete a given container |
|
|
|
# because the os_object module does not yet handle recursive |
|
|
|
# deletes. Revise this when RFE 60449 is implemented. |
|
|
|
# https://github.com/ansible/ansible/issues/60449 |
|
|
|
- name: Delete container and objects |
|
|
|
command: > |
|
|
|
openstack --os-cloud undercloud container delete "{{ item }}" --recursive |
|
|
|
failed_when: |
|
|
|
- container_objects.rc != 0 |
|
|
|
- "'not found' not in container_objects.stderr | lower" |
|
|
|
changed_when: |
|
|
|
- "'not found' not in container_objects.stderr | lower" |
|
|
|
register: container_objects |
|
|
|
loop: |
|
|
|
- "{{ stack_name }}" |
|
|
|
- "{{ stack_name }}-messages" |
|
|
|
- "{{ stack_name }}-swift-rings" |
|
|
|
|
|
|
|
post_tasks: |
|
|
|
- name: Workflow notice |
|
|
|
debug: |
|
|
|