Rework data structures for flatpaks to properly allow for different remotes

This commit is contained in:
Salt 2021-09-23 21:31:32 -05:00
parent 69a8036398
commit aa98612d6c
2 changed files with 10 additions and 5 deletions

View File

@ -157,8 +157,12 @@ desktop_flatpak_remotes:
desktop_flatpak_remotes_extra: [] desktop_flatpak_remotes_extra: []
desktop_flatpak_packages: desktop_flatpak_packages:
- remote: flathub
packages:
- com.obsproject.Studio - com.obsproject.Studio
- net.lutris.Lutris
- net.minetest.Minetest - net.minetest.Minetest
- org.DolphinEmu.dolphin-emu - org.DolphinEmu.dolphin-emu
- remote: flathub-beta
packages:
- net.lutris.Lutris
desktop_flatpak_packages_extra: [] desktop_flatpak_packages_extra: []

View File

@ -50,4 +50,5 @@
flatpak_remote: name="{{ item.name }}" state=present flatpakrepo_url="{{ item.url }}" flatpak_remote: name="{{ item.name }}" state=present flatpakrepo_url="{{ item.url }}"
with_items: "{{ desktop_flatpak_remotes + desktop_flatpak_remotes_extra }}" with_items: "{{ desktop_flatpak_remotes + desktop_flatpak_remotes_extra }}"
- name: configure installed flatpaks - name: configure installed flatpaks
flatpak: name="{{ desktop_flatpak_packages + desktop_flatpak_packages_extra }}" flatpak: name="{{ item.packages }}" state=present remote="{{ item.remote | default('flathub', true) }}"
with_items: "{{ desktop_flatpak_packages + desktop_flatpak_packages_extra }}"