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: