ansible-desktop/roles/ubuntu/tasks/unsnap.yml

15 lines
252 B
YAML
Raw Normal View History

2023-08-06 09:00:54 +00:00
- name: remove snap
become: yes
apt:
state: absent
purge: yes
pkg:
- snapd
- name: Forbid apt to install snap
become: yes
copy:
src: etc/apt/preferences.d/no-snap
dest: /etc/apt/preferences.d/no-snap
mode: '0644'