ultrabirb-cluster/ansible/tasks/remove-snap.yaml

17 lines
362 B
YAML
Raw Permalink Normal View History

2021-11-08 03:32:56 +01:00
- name: Remove snapd from Ubuntu
apt:
name: snapd
state: absent
purge: yes
when: ansible_distribution == "Ubuntu"
- name: Remove snapd-related directories
file:
path: "{{ item }}"
state: absent
with_items:
- /snap
- /var/snap
- /var/lib/snapd
- "/home/{{ ansible_user }}/snap"
when: ansible_distribution == "Ubuntu"