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