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

8 lines
308 B
YAML
Raw Normal View History

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