Merge "Remove container delete task"

This commit is contained in:
Zuul 2021-03-04 13:52:55 +00:00 committed by Gerrit Code Review
commit 49f843384f
1 changed files with 0 additions and 19 deletions

View File

@ -38,25 +38,6 @@
until: stack_delete is success until: stack_delete is success
delay: 4 delay: 4
retries: 16 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: post_tasks:
- name: Workflow notice - name: Workflow notice
debug: debug: