This commit is contained in:
Daniel Akulenok
2026-03-03 12:02:02 +01:00
parent 6bdde637e4
commit bc0f5c5669
4 changed files with 10 additions and 22 deletions

View File

@@ -16,11 +16,8 @@
name: "{{ item }}-network"
state: restarted
listen: Reload systemd
loop: "{{
(podman_networks | map(attribute='name') | list)
if (podman_use_quadlet | bool)
else (podman_network_output.results | selectattr('changed', 'equalto', true) | map(attribute='item.name') | list)
}}"
loop: "{{ (podman_networks | map(attribute='name') | list) if (podman_use_quadlet | bool) else (podman_network_output.results | selectattr('changed', 'equalto',
true) | map(attribute='item.name') | list) }}"
loop_control:
label: "{{ item }}"
when:
@@ -33,11 +30,8 @@
name: "{{ item }}-volume"
state: restarted
listen: Reload systemd
loop: "{{
(podman_volumes | map(attribute='name') | list)
if (podman_use_quadlet | bool)
else (podman_volume_output.results | selectattr('changed', 'equalto', true) | map(attribute='item.name') | list)
}}"
loop: "{{ (podman_volumes | map(attribute='name') | list) if (podman_use_quadlet | bool) else (podman_volume_output.results | selectattr('changed', 'equalto', true)
| map(attribute='item.name') | list) }}"
loop_control:
label: "{{ item }}"
when:
@@ -52,11 +46,8 @@
~ item ~ ('-pod' if not podman_generate_systemd | bool else '') }}
state: restarted
listen: Reload systemd
loop: "{{
(podman_pods | map(attribute='name') | list)
if (podman_use_quadlet | bool)
else (podman_pod_output.results | selectattr('changed', 'equalto', true) | map(attribute='item.name') | list)
}}"
loop: "{{ (podman_pods | map(attribute='name') | list) if (podman_use_quadlet | bool) else (podman_pod_output.results | selectattr('changed', 'equalto', true) |
map(attribute='item.name') | list) }}"
loop_control:
label: "{{ item }}"
when: