flatpak – Manage flatpaks¶
New in version 2.6.
Allows users to add or remove flatpaks.
See the flatpak_remote module for managing flatpak remotes.
- name: Install the spotify flatpak flatpak: name: https://s3.amazonaws.com/alexlarsson/spotify-repo/spotify.flatpakref state: present - name: Install the gedit flatpak package flatpak: name: https://git.gnome.org/browse/gnome-apps-nightly/plain/gedit.flatpakref state: present - name: Install the gedit package from flathub for current user flatpak: name: org.gnome.gedit state: present method: user - name: Install the Gnome Calendar flatpak from the gnome remote system-wide flatpak: name: org.gnome.Calendar state: present remote: gnome - name: Remove the gedit flatpak flatpak: name: org.gnome.gedit state: absent
Common return values are documented here, the following are the fields unique to this module: