community / community.general / 6.6.8 / module / snap_alias Manages snap aliases | "added in version" 4.0.0 of community.general" Authors: Alexei Znamensky (@russoz) <russoz@gmail.com>community.general.snap_alias (6.6.8) — module
Install with ansible-galaxy collection install community.general:==6.6.8
collections: - name: community.general version: 6.6.8
Manages snaps aliases.
# Install "foo" and "bar" snap - name: Create snap alias community.general.snap_alias: name: hello-world alias: hw
- name: Create multiple aliases community.general.snap_alias: name: hello-world aliases: - hw - hw2 - hw3 state: present # optional
- name: Remove one specific aliases community.general.snap_alias: name: hw state: absent
- name: Remove all aliases for snap community.general.snap_alias: name: hello-world state: absent
name: description: - Name of the snap. type: str alias: aliases: - aliases description: - Aliases to be created or removed. elements: str type: list state: choices: - absent - present default: present description: - Desired state of the alias. type: str
snap_aliases: description: The snap aliases after execution. If called in check mode, then the list represents the state before execution. elements: str returned: always type: list