2020-02-25 18:29:39 +01:00
|
|
|
---
|
|
|
|
|
2020-05-18 20:53:03 +02:00
|
|
|
- import_tasks: build/preconfigure-k3s.yml
|
|
|
|
|
|
|
|
- import_tasks: teardown/drain-and-remove-nodes.yml
|
|
|
|
|
2020-02-26 21:05:38 +01:00
|
|
|
- import_tasks: teardown/uninstall-k3s.yml
|
2020-02-25 18:29:39 +01:00
|
|
|
|
2020-10-22 20:26:15 +02:00
|
|
|
- name: Ensure docker uninstall tasks are run
|
|
|
|
block:
|
|
|
|
|
2020-12-21 20:14:52 +01:00
|
|
|
- import_tasks: teardown/docker/uninstall.yml
|
2020-10-23 17:40:35 +02:00
|
|
|
when: ansible_distribution | replace(" ", "-") | lower not in ['amazon', 'suse', 'opensuse-leap', 'archlinux']
|
2020-10-22 20:26:15 +02:00
|
|
|
|
2020-12-21 20:14:52 +01:00
|
|
|
- include_tasks: teardown/docker/{{ ansible_distribution | replace(" ", "-") | lower }}/uninstall.yml
|
2020-10-23 17:40:35 +02:00
|
|
|
when: ansible_distribution | replace(" ", "-") | lower in ['amazon', 'suse', 'opensuse-leap', 'archlinux']
|
2020-10-22 20:26:15 +02:00
|
|
|
|
2020-12-21 20:14:52 +01:00
|
|
|
- include_tasks: teardown/docker/{{ ansible_os_family | lower }}/uninstall-prerequisites.yml
|
2020-10-22 20:26:15 +02:00
|
|
|
|
2021-02-16 16:46:01 +01:00
|
|
|
when:
|
|
|
|
- ('docker' in k3s_runtime_config and k3s_runtime_config.docker)
|
|
|
|
- ('rootless' not in k3s_runtime_config or not k3s_runtime_config.rootless)
|
2020-02-26 21:05:38 +01:00
|
|
|
|
2020-12-21 20:14:52 +01:00
|
|
|
- import_tasks: validate/state/uninstalled.yml
|
2020-09-21 20:38:51 +02:00
|
|
|
when: not k3s_skip_validation
|