ansible-desktop/roles/no-snap/tasks/main.yml
Przemek Grondek be0fa13c16 Add no-snap
2023-08-06 11:00:54 +02:00

15 lines
252 B
YAML

- 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'