make paths only when needed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user