community.general.snap – Manages snaps¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.snap
.
Parameters¶
Examples¶
# Install "foo" and "bar" snap
- name: Install foo
community.general.snap:
name:
- foo
- bar
# Remove "foo" snap
- name: Remove foo
community.general.snap:
name: foo
state: absent
# Install a snap with classic confinement
- name: Install "foo" with option --classic
community.general.snap:
name: foo
classic: yes
# Install a snap with from a specific channel
- name: Install "foo" with option --channel=latest/edge
community.general.snap:
name: foo
channel: latest/edge
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Victor Carceler (@vcarceler) <vcarceler@iespuigcastellar.xeill.net>
Stanislas Lange (@angristan) <angristan@pm.me>