Fix idempotence

This commit is contained in:
Daniel Akulenok
2026-03-03 11:50:49 +01:00
parent b1a627f2ee
commit 6bdde637e4

View File

@@ -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: