Module for ansible to setup packages with snapd
- Make sure file
snap.py
is accessable as ansible module
Alternatively you can put it in library
directory with your playbook
|- playbook.yml
|- library
|- snap.py
- name: update snap cache
snap:
upgrade: yes
- name: snap
snap:
name: "{{ item }}"
state: absent
with_items:
- hello-world
- hello-world