ansible/roles/ubuntu/tasks/snap.yml
2022-08-25 23:15:00 +02:00

20 lines
347 B
YAML

---
- become: yes
block:
- name: Get the list of services
service_facts:
- name: stop snapd
systemd:
name: snapd
state: stopped
when: "'snapd.service' in services"
- name: uninstall snapd
apt:
update_cache: yes
state: absent
purge: yes
pkg:
- snapd