Files
kolla-ansible/ansible/roles/container-engine-migration/tasks/uninstall-current-engine.yml
Konstantin Yarovoy f726cfd998 Add container engine migration scenario
Add "migrate-container-engine" action to kolla-ansible which
changes the container engine on which the Openstack is deployed on.
For example Docker to Podman and vice versa.

Depends-on: https://review.opendev.org/c/openstack/ansible-collection-kolla/+/925083
Signed-off-by: Konstantin Yarovoy <konstantin.yarovoy@tietoevry.com>
Signed-off-by: Martin Hiner <m.hiner@partner.samsung.com>
Signed-off-by: Roman Krček <roman.krcek@tietoevry.com>
Change-Id: Icd709cb042d44e063c5da64ab0695b0b6ba6d48b
2025-03-19 17:20:04 +00:00

21 lines
601 B
YAML

---
# TODO(r-krcek): This could be together with some other tasks
# replaced with the new destroy role when
# https://review.opendev.org/c/openstack/kolla-ansible/+/920714
# is merged one day
- name: Remove all containers and images
become: true
script: ce-cleanup.sh "{{ current_engine }}"
- name: Uninstall current container engine SDK
include_role:
name: "openstack.kolla.{{ current_engine }}_sdk"
vars:
package_action: "uninstall"
- name: Uninstall current container engine
include_role:
name: "openstack.kolla.{{ current_engine }}"
vars:
package_action: "uninstall"