Fix idempotence
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
---
|
---
|
||||||
# Generate systemd service files for Podman containers and pods
|
# Generate systemd service files for Podman containers and pods
|
||||||
|
|
||||||
- name: Generate systemd service files for containers
|
- name: Generate systemd service files for containers
|
||||||
vars:
|
vars:
|
||||||
systemd_opts: "{{ item.systemd if item.systemd is defined
|
systemd_opts: "{{ item.systemd if item.systemd is defined
|
||||||
@@ -19,7 +18,7 @@
|
|||||||
requires: "{{ systemd_opts.requires | default(podman_systemd_options.requires) }}"
|
requires: "{{ systemd_opts.requires | default(podman_systemd_options.requires) }}"
|
||||||
container_prefix: "{{ systemd_opts.container_prefix | default(podman_systemd_options.container_prefix) }}"
|
container_prefix: "{{ systemd_opts.container_prefix | default(podman_systemd_options.container_prefix) }}"
|
||||||
pod_prefix: "{{ systemd_opts.pod_prefix | default(podman_systemd_options.pod_prefix) }}"
|
pod_prefix: "{{ systemd_opts.pod_prefix | default(podman_systemd_options.pod_prefix) }}"
|
||||||
loop: "{{ podman_containers }}"
|
loop: "{{ podman_containers | rejectattr('pod', 'defined') }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
when:
|
when:
|
||||||
|
|||||||
Reference in New Issue
Block a user