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:
|
|
|
|
|
|
|
|
- import_tasks: teardown/uninstall-docker.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
|
|
|
|
|
|
|
- include_tasks: teardown/uninstall-docker-{{ ansible_distribution | replace(" ", "-") | lower }}.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
|
|
|
|
|
|
|
- include_tasks: teardown/uninstall-docker-prerequisites-{{ ansible_os_family | lower }}.yml
|
|
|
|
|
|
|
|
when: ('docker' in k3s_runtime_config and k3s_runtime_config.docker)
|
|
|
|
and ('rootless' not in k3s_runtime_config or not k3s_runtime_config.rootless)
|
2020-02-26 21:05:38 +01:00
|
|
|
|
|
|
|
- import_tasks: validate/check-uninstalled.yml
|
2020-09-21 20:38:51 +02:00
|
|
|
when: not k3s_skip_validation
|