51 lines
1.3 KiB
YAML
51 lines
1.3 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: Debug flatpak
|
|
loop: "{{ pkg_flatpak | unique }}"
|
|
loop_control:
|
|
loop_var: flatpak
|
|
ansible.builtin.debug:
|
|
var: flatpak
|
|
- name: Install flatpak
|
|
loop: "{{ pkg_flatpak | unique }}"
|
|
loop_control:
|
|
loop_var: flatpak
|
|
community.general.flatpak:
|
|
method: "{{ flatpak_method }}"
|
|
name: "{{ flatpak.name }}"
|
|
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
|