Update with latest out of band changes

This commit is contained in:
Daniel Akulenok
2026-01-21 10:11:18 +01:00
parent 17fea0e02b
commit 6177112df8
6 changed files with 61 additions and 58 deletions

View File

@@ -11,30 +11,6 @@
ansible.builtin.systemd:
daemon_reload: true
- name: Restart Podman pods
ansible.builtin.systemd:
name: "{{ (podman_systemd_options.pod_prefix if podman_generate_systemd | bool else '') ~ item ~ ('-pod' if not podman_generate_systemd | bool else '') }}"
state: restarted
listen: Reload systemd
loop: "{{ podman_pod_output.results | selectattr('changed', 'equalto', true) | map(attribute='item.name') | list }}"
loop_control:
label: "{{ item }}"
when:
- podman_pod_output is defined
- podman_pod_output.results | length > 0
- name: Restart Podman containers
ansible.builtin.systemd:
name: "{{ (podman_systemd_options.container_prefix if podman_generate_systemd | bool else '') ~ item }}"
state: restarted
listen: Reload systemd
loop: "{{ podman_container_output.results | selectattr('changed', 'equalto', true) | map(attribute='item.name') | list }}"
loop_control:
label: "{{ item }}"
when:
- podman_container_output is defined
- podman_container_output.results | length > 0
- name: Restart Podman networks
ansible.builtin.systemd:
name: "{{ item }}-network"
@@ -60,3 +36,27 @@
- podman_volume_output is defined
- podman_volume_output.results | length > 0
- not podman_generate_systemd | bool
- name: Restart Podman pods
ansible.builtin.systemd:
name: "{{ (podman_systemd_options.pod_prefix if podman_generate_systemd | bool else '') ~ item ~ ('-pod' if not podman_generate_systemd | bool else '') }}"
state: restarted
listen: Reload systemd
loop: "{{ podman_pod_output.results | selectattr('changed', 'equalto', true) | map(attribute='item.name') | list }}"
loop_control:
label: "{{ item }}"
when:
- podman_pod_output is defined
- podman_pod_output.results | length > 0
- name: Restart Podman containers
ansible.builtin.systemd:
name: "{{ (podman_systemd_options.container_prefix if podman_generate_systemd | bool else '') ~ item }}"
state: restarted
listen: Reload systemd
loop: "{{ podman_container_output.results | selectattr('changed', 'equalto', true) | map(attribute='item.name') | list }}"
loop_control:
label: "{{ item }}"
when:
- podman_container_output is defined
- podman_container_output.results | length > 0