ansible/roles/ubuntu/tasks/snap.yml

20 lines
347 B
YAML
Raw Normal View History

2022-08-25 21:15:00 +00:00
---
- 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