ansible-role-k3s/tasks/teardown/docker/amazon/uninstall.yml
2021-04-10 12:31:18 +01:00

8 lines
333 B
YAML

---
- name: Ensure docker is uninstalled using amazon-linux-extras
ansible.builtin.command:
cmd: amazon-linux-extras uninstall docker
register: uninstall_docker_from_amazon_linux
changed_when: uninstall_docker_from_amazon_linux.rc == 0
become: "{{ k3s_become_for_uninstall | ternary(true, false, k3s_become_for_all) }}"