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

8 lines
324 B
YAML
Raw Normal View History

2020-02-25 18:29:39 +01:00
---
- name: Ensure docker is uninstalled using amazon-linux-extras
ansible.builtin.command: 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) }}"