working through each file

This commit is contained in:
Matthew Stobbs
2025-02-13 11:06:56 -07:00
parent c73ac46bc8
commit 17ed8354c0
12 changed files with 163 additions and 184 deletions

31
tasks/linux.yml Normal file
View File

@@ -0,0 +1,31 @@
# vim: set filetype=yaml.ansible :
---
- name: Install flatpaks on Linux Systems
when:
- flatpaks|length > 0
block:
- name: Add flatpak remotes
when:
- flatpak_remotes|length > 0
become: "{{ ext_become }}"
loop: "{{ flatpak_remotes | unique }}"
loop_control:
loop_var: remote
community.general.flatpak_remote:
enabled: true
flatpakrepo_url: "{{ remote.url }}"
method: "{{ flatpak_method }}"
name: "{{ remote.name }}"
state: present
- name: Install flatpaks
become: "{{ ext_become }}"
loop: "{{ flatpaks | unique }}"
loop_control:
loop_var: flatpak
community.general.flatpak:
method: "{{ flatpak_method }}"
name: "{{ flatpak.name }}"
remote: "{{ flatpak.remote | default('flathub') }}"
state: present