Note
This module is part of the community.general collection (version 10.7.3).
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_remote.
flatpakrepo file URLs.The below requirements are needed on the host that executes this module.
Parameter | Comments |
|---|---|
enabled boolean added in community.general 6.4.0 | Indicates whether this remote is enabled. Choices:
|
executable string | The path to the By default, this module looks for the Default: |
flatpakrepo_url string | The URL to the When used with When used with Required when |
method string | The installation method to use. Defines if the Choices:
|
name string / required | The desired name for the flatpak remote to be registered under on the managed host. When used with When used with |
state string | Indicates the desired package state. Choices:
|
Attribute | Support | Description |
|---|---|---|
check_mode | Support: full | Can run in |
diff_mode | Support: none | Will return details on what has changed (or possibly needs changing in |
- name: Add the Gnome flatpak remote to the system installation
community.general.flatpak_remote:
name: gnome
state: present
flatpakrepo_url: https://sdk.gnome.org/gnome-apps.flatpakrepo
- name: Add the flathub flatpak repository remote to the user installation
community.general.flatpak_remote:
name: flathub
state: present
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
method: user
- name: Remove the Gnome flatpak remote from the user installation
community.general.flatpak_remote:
name: gnome
state: absent
method: user
- name: Remove the flathub remote from the system installation
community.general.flatpak_remote:
name: flathub
state: absent
- name: Disable the flathub remote in the system installation
community.general.flatpak_remote:
name: flathub
state: present
enabled: false
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
command string | The exact flatpak command that was executed. Returned: When a flatpak command has been executed Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/flatpak_remote_module.html