From 42fb86f5b1153aa0517a608f4fa3152506416b54 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Fri, 10 Apr 2026 21:29:06 -0400 Subject: [PATCH] Fix restart list to only include changed projects --- roles/podman/tasks/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/podman/tasks/deploy.yml b/roles/podman/tasks/deploy.yml index 9bab354..03f28ba 100644 --- a/roles/podman/tasks/deploy.yml +++ b/roles/podman/tasks/deploy.yml @@ -170,7 +170,7 @@ loop: "{{ podman_compose_update.results }}" loop_control: label: "{{ podman_user }}/{{ item.project.name }}" - when: (podman_compose_update.results | default([]) | length) > 0 + when: item.changed | default(false) tags: podman_compose - name: Fix ownership of synchronized compose files @@ -220,7 +220,7 @@ loop: "{{ podman_compose_env_update.results }}" loop_control: label: "{{ podman_user }}/{{ item.project.name }}" - when: (podman_compose_env_update.results | default([]) | length) > 0 + when: item.changed | default(false) tags: podman_compose - name: Update list of enabled compose projects