mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Add desktop Flatpak installation via Flathub
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user