community.general.flatpak_mask module – Mask Flatpak applications
Note
This module is part of the community.general collection (version 14.0.0).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.general.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.general.flatpak_mask.
New in community.general 13.5.0
Synopsis
This module masks Flatpak applications, preventing them from being installed or updated.
It encapsulates the behavior of
flatpak mask.
Requirements
The below requirements are needed on the host that executes this module.
flatpak
Parameters
Parameter |
Comments |
|---|---|
The application ID or pattern to mask (for example |
|
Whether the mask or unmask operation applies to the system-wide installation ( Choices:
|
|
Whether the application should be masked ( Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: full |
Can run in |
|
Support: none |
Returns details on what has changed (or possibly needs changing in |
Examples
- name: Mask flatpak gtk theme
flatpak_mask:
name: "org.gtk.Gtk3theme.Adwaita-dark"
- name: Unmask flatpak gtk theme
flatpak_mask:
name: "org.gtk.Gtk3theme.Adwaita-dark"
state: absent
- name: Mask flatpak applications matching a pattern
flatpak_mask:
name: "org.gtk.*"
- name: Mask a flatpak application for the user installation only
flatpak_mask:
name: "org.gtk.Gtk3theme.Adwaita-dark"
scope: user