remove the docker snap if installed

This commit is contained in:
Andreas Zweili 2021-11-12 09:16:00 +01:00
parent c475d39f9e
commit e4c185b067
1 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,10 @@
- name: "Remove Docker snap package"
community.general.snap:
name: "docker"
state: absent
when:
- ansible_facts['distribution'] == "Ubuntu"
- name: "Add apt key for Docker"
apt_key:
url: "https://download.docker.com/linux/ubuntu/gpg"