2022-01-01 19:24:52 +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"
|
2022-04-16 19:55:29 +02:00
|
|
|
when: ansible_distribution == "Ubuntu"
|
|
|
|
...
|