This commit is contained in:
Daniel Akulenok
2025-09-17 14:45:49 +02:00
parent 0938e4b601
commit 65dcedbe6c
4 changed files with 5 additions and 18 deletions

View File

@@ -18,7 +18,7 @@
detach: "{{ item.detach | bool | default(omit) }}"
interactive: "{{ item.interactive | bool | default(omit) }}"
tty: "{{ item.tty | bool | default(omit) }}"
rm: "{{ item.auto_remove | bool | default(omit) }}"
rm: "{{ item.auto_remove | bool | default(podman_auto_remove) }}"
rmi: "{{ item.remove_image | bool | default(omit) }}"
privileged: "{{ item.privileged | bool | default(omit) }}"
read_only: "{{ item.read_only | bool | default(omit) }}"
@@ -225,17 +225,3 @@
loop_control:
label: "{{ item.name }}"
register: podman_container_results
- name: Enable and start container systemd services
ansible.builtin.systemd:
name: "container-{{ item.item.name }}"
enabled: true
state: started
daemon_reload: true
loop: "{{ podman_container_results.results }}"
loop_control:
label: "{{ item.item.name }}"
when:
- item.item.generate_systemd is defined
- item.item.generate_systemd
- item.item.state | default('present') in ['present', 'started']