Enhance Podman configuration and management

- Update pruning options to include filters for containers, images, networks, and volumes.
- Modify handlers to restart Podman resources based on new conditions.
- Expand Molecule tests to verify networks, volumes, pods, and containers.
- Adjust service management tasks for Podman services and auto-update.
- Refactor tasks for better clarity and maintainability.
This commit is contained in:
Daniel Akulenok
2026-02-20 14:49:22 +01:00
parent d30423013a
commit b1a627f2ee
12 changed files with 399 additions and 104 deletions

View File

@@ -23,10 +23,8 @@
loop_control:
label: "{{ item.name }}"
when:
- podman_generate_systemd | bool
- podman_containers is defined
- podman_containers | length > 0
- (item.systemd is defined) or (item.generate_systemd is defined)
notify: Reload systemd
- name: Generate systemd service files for pods
@@ -51,8 +49,6 @@
loop_control:
label: "{{ item.name }}"
when:
- podman_generate_systemd | bool
- podman_pods is defined
- podman_pods | length > 0
- (item.systemd is defined) or (item.generate_systemd is defined)
notify: Reload systemd