Remove container delete task

We no longer have swift on the undercloud so this task no longer needs
to exist. With it here we're unable to delete an overcloud via the CLI.

Change-Id: I20bb3ea3b65c42638f81363afeb84dc3e9aa1764
Signed-off-by: Kevin Carter <kecarter@redhat.com>
This commit is contained in:
Kevin Carter 2021-03-03 11:48:32 -06:00
parent 2bd02cc59a
commit be02313503
No known key found for this signature in database
GPG Key ID: CE94BD890A47B20A
1 changed files with 0 additions and 19 deletions

View File

@ -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: