# 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 appimages when: - pkg_appimage|length > 0 block: - name: Ensure appimage path exists become: "{{ ext_become }}" ansible.builtin.file: state: directory mode: '0755' path: "{{ path.appimage }}" - name: Install pkg_appimage loop: "{{ pkg_appimage }}" loop_control: loop_var: pkg ansible.builtin.include_tasks: file: appimage.yml