kolla-ansible/ansible/roles/swift/tasks/legacy_upgrade.yml
Martin Hiner a13d83400f Rename kolla_docker to kolla_container
Changes name of ansible module kolla_docker to
kolla_container.

Change-Id: I13c676ed0378aa721a21a1300f6054658ad12bc7
Signed-off-by: Martin Hiner <m.hiner@partner.samsung.com>
2023-11-15 13:54:57 +01:00

36 lines
1.1 KiB
YAML

---
- import_tasks: config.yml
# NOTE(pbourke): because the images that are used to start Swift containers
# were refactored for Mitaka, we need to completely remove the existing
# containers or we get a conflict when attempting to start the new ones.
- name: "Cleaning out old Swift containers"
become: true
kolla_container:
common_options: "{{ docker_common_options }}"
name: "{{ item }}"
action: "stop_container"
with_items:
- "swift_rsyncd"
- "swift_account_server"
- "swift_account_auditor"
- "swift_account_replication_server"
- "swift_account_replicator"
- "swift_account_reaper"
- "swift_container_server"
- "swift_container_auditor"
- "swift_container_replication_server"
- "swift_container_replicator"
- "swift_container_updater"
- "swift_object_server"
- "swift_object_auditor"
- "swift_object_replication_server"
- "swift_object_replicator"
- "swift_object_updater"
- "swift_object_expirer"
- "swift_proxy_server"
- import_tasks: start.yml
vars:
run_start_swift_proxy_server: "yes"