Documentation
PLEASE NOTE: This document applies to latest version and not to the latest stable release v2.21
Documentation for other releases can be found by using the version selector in the top right of any doc page.flatpak
Manage Flatpak packages.
Flatpak is a universal package format for Linux desktop applications. This module enables management of Flatpak packages in desktop and container environments.
Attributes
check_mode:
support: full
Parameters
| Parameter | Required | Type | Values | Description |
|---|---|---|---|---|
| name | array | Name or list of names of the Flatpak package(s) to install or remove. Package IDs are preferred (e.g., org.gnome.Calendar). |
||
| state | string | absent present |
Whether to install (present), or remove (absent) a Flatpak package. [default: "present"] |
|
| remote | string | The Flatpak remote to use for installation. [default: "flathub"] |
||
| method | string | system user |
The installation method to use. system installs for all users, user installs for the current user only. [default: "system"] |
|
| no_deps | boolean | Whether to install without dependencies. [default: false] |
||
| executable | string | Path of the flatpak binary to use. [default: "flatpak"] |
Example
- name: Install a Flatpak package
flatpak:
name: org.gnome.Calendar
state: present
- name: Install a Flatpak from a specific remote
flatpak:
name: org.gnome.Calendar
remote: flathub
state: present
- name: Install a Flatpak for user installation
flatpak:
name: org.gnome.Calendar
method: user
state: present
- name: Install multiple Flatpaks
flatpak:
name:
- org.gnome.Calendar
- org.gnome.Todo
state: present
- name: Install a Flatpak without dependencies
flatpak:
name: org.gnome.Calendar
no_deps: true
state: present
- name: Remove a Flatpak package
flatpak:
name: org.gnome.Calendar
state: absent