make paths only when needed

This commit is contained in:
Matthew Stobbs
2025-03-25 04:14:11 -06:00
parent cc29115f16
commit fe7af27e26
2 changed files with 62 additions and 34 deletions

View File

@@ -33,11 +33,20 @@
remote: "{{ flatpak.remote | default('flathub') }}"
state: present
- name: Install pkg_appimage
- name: Install appimages
when:
- pkg_appimage|length > 0
loop: "{{ pkg_appimage }}"
loop_control:
loop_var: pkg
ansible.builtin.include_tasks:
file: appimage.yml
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