ansible-role-k3s/tasks/teardown/uninstall-docker.yml

15 lines
356 B
YAML
Raw Normal View History

2020-02-25 18:29:39 +01:00
---
- name: Ensure docker is uninstalled
ansible.builtin.package:
2020-02-25 18:29:39 +01:00
name:
- docker-ce
- docker-ce-cli
- containerd.io
state: absent
register: ensure_docker_uninstalled
until: ensure_docker_uninstalled is succeeded
retries: 3
delay: 10
become: "{{ k3s_become_for_uninstall | ternary(true, false, k3s_become_for_all) }}"