Fix restart list to only include changed projects

This commit is contained in:
2026-04-10 21:29:06 -04:00
parent 19a65cb742
commit 42fb86f5b1

View File

@@ -170,7 +170,7 @@
loop: "{{ podman_compose_update.results }}" loop: "{{ podman_compose_update.results }}"
loop_control: loop_control:
label: "{{ podman_user }}/{{ item.project.name }}" label: "{{ podman_user }}/{{ item.project.name }}"
when: (podman_compose_update.results | default([]) | length) > 0 when: item.changed | default(false)
tags: podman_compose tags: podman_compose
- name: Fix ownership of synchronized compose files - name: Fix ownership of synchronized compose files
@@ -220,7 +220,7 @@
loop: "{{ podman_compose_env_update.results }}" loop: "{{ podman_compose_env_update.results }}"
loop_control: loop_control:
label: "{{ podman_user }}/{{ item.project.name }}" label: "{{ podman_user }}/{{ item.project.name }}"
when: (podman_compose_env_update.results | default([]) | length) > 0 when: item.changed | default(false)
tags: podman_compose tags: podman_compose
- name: Update list of enabled compose projects - name: Update list of enabled compose projects