From 822e35ff83de3f0e06334c8a9d6fdd74c1d64854 Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Mon, 16 Mar 2026 17:15:54 +0100 Subject: [PATCH] Add desktop Flatpak installation via Flathub --- ansible/inventory/group_vars/desktop.yml | 8 ++++++++ ansible/roles/profile_desktop_i3/tasks/main.yml | 15 +++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/ansible/inventory/group_vars/desktop.yml b/ansible/inventory/group_vars/desktop.yml index 068a387..97ba749 100644 --- a/ansible/inventory/group_vars/desktop.yml +++ b/ansible/inventory/group_vars/desktop.yml @@ -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 diff --git a/ansible/roles/profile_desktop_i3/tasks/main.yml b/ansible/roles/profile_desktop_i3/tasks/main.yml index 8d6c380..bd6479f 100644 --- a/ansible/roles/profile_desktop_i3/tasks/main.yml +++ b/ansible/roles/profile_desktop_i3/tasks/main.yml @@ -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