From 1b0c289b9b5e9fbb5feac99e5e00e0b400c39c3360ca13a15ff601a40a147daa Mon Sep 17 00:00:00 2001 From: bryan Date: Thu, 29 Jan 2026 03:01:19 -0500 Subject: [PATCH] Fix path references --- roles/deploy_files.yml | 4 ++-- roles/quadlets/tasks/main.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/deploy_files.yml b/roles/deploy_files.yml index 3d0dfe6..567c668 100644 --- a/roles/deploy_files.yml +++ b/roles/deploy_files.yml @@ -9,9 +9,9 @@ - name: "Build file lists for {{ var_prefix }}" ansible.builtin.set_fact: "{{ var_prefix }}_files": "{{ lookup('community.general.filetree', - role_path ~ '/' ~ (subdir | default(''))) | selectattr('state', 'equalto', 'file') | rejectattr('path', 'match', '.*\\.j2$') | list }}" + role_path ~ '/' ~ (subdir | default('')), wantlist=True) | selectattr('state', 'equalto', 'file') | rejectattr('path', 'match', '.*\\.j2$') | list }}" "{{ var_prefix }}_templates": "{{ lookup('community.general.filetree', - role_path ~ '/' ~ (subdir | default(''))) | selectattr('state', 'equalto', 'file') | selectattr('path', 'match', '.*\\.j2$') | list }}" + role_path ~ '/' ~ (subdir | default('')), wantlist=True) | selectattr('state', 'equalto', 'file') | selectattr('path', 'match', '.*\\.j2$') | list }}" - name: "Ensure directories exist for {{ var_prefix }}" ansible.builtin.file: diff --git a/roles/quadlets/tasks/main.yml b/roles/quadlets/tasks/main.yml index cfa4387..80d0bc9 100644 --- a/roles/quadlets/tasks/main.yml +++ b/roles/quadlets/tasks/main.yml @@ -41,6 +41,6 @@ - name: Deploy quadlets using fedora.linux_system_roles.podman ansible.builtin.include_role: name: fedora.linux_system_roles.podman - vars: - podman_quadlet_specs: "{{ quadlets_specs }}" + vars: + podman_quadlet_specs: "{{ quadlets_specs }}" when: quadlets_specs is defined and quadlets_specs | length > 0