Add desktop Flatpak installation via Flathub

This commit is contained in:
Fabio Scotto di Santolo
2026-03-16 17:15:54 +01:00
parent 4f14ccb740
commit 701b70f30b
2 changed files with 23 additions and 0 deletions

View File

@@ -33,3 +33,11 @@ profile_packages:
- libspa-bluetooth
- yaru
- yaru-plus
desktop_flatpak_packages:
- ch.protonmail.protonmail-bridge
- com.calibre_ebook.calibre
- com.github.tchx84.Flatseal
- com.spotify.Client
- io.github.flattool.Warehouse
- org.telegram.desktop

View File

@@ -100,3 +100,18 @@
owner: "{{ username }}"
group: "{{ user_group }}"
mode: "0600"
- name: Ensure flathub remote is configured
community.general.flatpak_remote:
name: "{{ desktop_flatpak_remote_name | default('flathub') }}"
state: present
flatpakrepo_url: "{{ desktop_flatpak_remote_url | default('https://dl.flathub.org/repo/flathub.flatpakrepo') }}"
when: (desktop_flatpak_packages | default([])) | length > 0
- name: Install desktop flatpak applications
community.general.flatpak:
name: "{{ desktop_flatpak_packages }}"
state: present
remote: "{{ desktop_flatpak_remote_name | default('flathub') }}"
method: system
when: (desktop_flatpak_packages | default([])) | length > 0