Files
kayobe/ansible/roles/docker-registry/tasks/destroy.yml
Will Szumski 988a822259 Add podman support
Adds support for Podman as an alternative container engine. This builds
on the support added in kolla-ansible in the 2023.2 cycle.

Change-Id: I2c6befbdda7e684228065103feea7250a0ea3826
2025-01-27 16:42:33 +00:00

17 lines
463 B
YAML

---
- name: Ensure docker registry container is stopped
kayobe_container:
name: "{{ item.value.container_name }}"
state: "absent"
with_dict: "{{ docker_registry_services }}"
- name: Check whether docker registry volumes are absent
kayobe_container_volume:
name: "{{ volume }}"
state: absent
with_subelements:
- "{{ docker_registry_services }}"
- volumes
when: "'/' not in volume"
vars:
volume: "{{ item.1.split(':')[0] }}"