Files
ansible_role_package/tasks/linux.yml
2025-03-25 04:28:10 -06:00

44 lines
1.2 KiB
YAML

# vim: set filetype=yaml.ansible :
---
- name: Install flatpaks on Linux Systems
when:
- pkg_flatpak|length > 0
block:
- name: Add flatpak remotes
when:
- flatpak_remote|length > 0
become: "{{ ext_become }}"
loop: "{{ flatpak_remote | 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
when:
- pkg_flatpak|length > 0
become: "{{ ext_become }}"
block:
- name: Install flatpak
loop: "{{ pkg_flatpak | unique }}"
loop_control:
loop_var: flatpak
community.general.flatpak:
method: "{{ flatpak_method }}"
name: "{{ flatpak.name | default(flatpak) }}"
remote: "{{ flatpak.remote | default('flathub') }}"
state: present
- name: Install pkg_appimage
when:
- pkg_appimage|length > 0
loop: "{{ pkg_appimage }}"
loop_control:
loop_var: pkg
ansible.builtin.include_tasks:
file: appimage.yml