make directories only when needed

This commit is contained in:
Matthew Stobbs
2025-03-25 04:28:10 -06:00
parent fe7af27e26
commit 6d124fa626
3 changed files with 95 additions and 65 deletions

View File

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