snap – Manages snaps¶
New in version 2.8.
Synopsis¶
Manages snaps packages.
Parameters¶
Examples¶
# Install "foo" and "bar" snap
- name: Install foo
snap:
name:
- foo
- bar
# Remove "foo" snap
- name: Remove foo
snap:
name: foo
state: absent
# Install a snap with classic confinement
- name: Install "foo" with option --classic
snap:
name: foo
classic: yes
# Install a snap with from a specific channel
- name: Install "foo" with option --channel=latest/edge
snap:
name: foo
channel: latest/edge
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by the Ansible Community. [community]