From 6bdde637e48235caf673ec2e4a624af79072953e Mon Sep 17 00:00:00 2001 From: Daniel Akulenok Date: Tue, 3 Mar 2026 11:50:49 +0100 Subject: [PATCH] Fix idempotence --- tasks/systemd.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/systemd.yml b/tasks/systemd.yml index 9efbf03..9b6a634 100644 --- a/tasks/systemd.yml +++ b/tasks/systemd.yml @@ -1,6 +1,5 @@ --- # Generate systemd service files for Podman containers and pods - - name: Generate systemd service files for containers vars: systemd_opts: "{{ item.systemd if item.systemd is defined @@ -19,7 +18,7 @@ requires: "{{ systemd_opts.requires | default(podman_systemd_options.requires) }}" container_prefix: "{{ systemd_opts.container_prefix | default(podman_systemd_options.container_prefix) }}" pod_prefix: "{{ systemd_opts.pod_prefix | default(podman_systemd_options.pod_prefix) }}" - loop: "{{ podman_containers }}" + loop: "{{ podman_containers | rejectattr('pod', 'defined') }}" loop_control: label: "{{ item.name }}" when: