snap

Collection: community.general

Full Name: parallax.community.general.snap

Aliases: community.general.snap, snap

Synopsis

Install and remove snap packages

Parameters

NameTypeRequiredDefaultDescription
namestringyesName of the snap to install or remove
statestringpresentThe desired state of the snap (present, absent, enabled, disabled)
channelstringstableThe channel to install the snap from
classicboolfalseInstall the snap in classic confinement mode
dangerousboolfalseInstall the snap even if it is dangerous
optionsstringAdditional options to pass to the snap command

Example

- name: Install a snap from a specific channel
  snap:
    name: microk8s
    channel: 1.29/stable
    classic: true
    state: present