mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 23:49:56 +00:00
Fix Flatpak theme extension installation
This commit is contained in:
@@ -273,37 +273,13 @@
|
|||||||
method: system
|
method: system
|
||||||
when: (desktop_flatpak_packages | default([])) | length > 0
|
when: (desktop_flatpak_packages | default([])) | length > 0
|
||||||
|
|
||||||
- name: Gather Flatpak runtime branches for extensions
|
|
||||||
ansible.builtin.shell: >-
|
|
||||||
flatpak list --runtime --columns=application,branch --system
|
|
||||||
| awk '$1 == "org.gnome.Platform" || $1 == "org.freedesktop.Platform" { print $2 }'
|
|
||||||
| sort -u
|
|
||||||
register: desktop_flatpak_runtime_branches
|
|
||||||
changed_when: false
|
|
||||||
when:
|
|
||||||
- (desktop_flatpak_packages | default([])) | length > 0
|
|
||||||
- (desktop_flatpak_extensions | default([])) | length > 0
|
|
||||||
|
|
||||||
- name: Build Flatpak extension refs for active runtimes
|
|
||||||
ansible.builtin.set_fact:
|
|
||||||
desktop_flatpak_extension_refs: >-
|
|
||||||
{{
|
|
||||||
(desktop_flatpak_extensions | default([]))
|
|
||||||
| product(desktop_flatpak_runtime_branches.stdout_lines | default([]))
|
|
||||||
| map('join', '//')
|
|
||||||
| list
|
|
||||||
}}
|
|
||||||
when:
|
|
||||||
- (desktop_flatpak_packages | default([])) | length > 0
|
|
||||||
- (desktop_flatpak_extensions | default([])) | length > 0
|
|
||||||
|
|
||||||
- name: Install Flatpak extensions for active runtimes
|
- name: Install Flatpak extensions for active runtimes
|
||||||
community.general.flatpak:
|
community.general.flatpak:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
remote: "{{ desktop_flatpak_remote_name | default('flathub') }}"
|
remote: "{{ desktop_flatpak_remote_name | default('flathub') }}"
|
||||||
method: system
|
method: system
|
||||||
loop: "{{ desktop_flatpak_extension_refs | default([]) }}"
|
loop: "{{ desktop_flatpak_extensions | default([]) }}"
|
||||||
when:
|
when:
|
||||||
- (desktop_flatpak_packages | default([])) | length > 0
|
- (desktop_flatpak_packages | default([])) | length > 0
|
||||||
- (desktop_flatpak_extensions | default([])) | length > 0
|
- (desktop_flatpak_extensions | default([])) | length > 0
|
||||||
|
|||||||
Reference in New Issue
Block a user