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

@@ -1,29 +1,23 @@
---
# Manage Podman services
ansible.builtin.systemd_service:
name: podman.socket
enabled: true
state: started
daemon_reload: true
- name: Enable and start Podman API service
- name: Enable Podman service
ansible.builtin.systemd_service:
name: podman.service
enabled: true
state: started
daemon_reload: true
- name: Enable and start Podman auto-update service
- name: Enable Podman socket
ansible.builtin.systemd_service:
name: podman.socket
enabled: true
- name: Enable Podman auto-update service
ansible.builtin.systemd_service:
name: podman-auto-update.service
enabled: true
state: started
daemon_reload: true
when: podman_enable_auto_update
- name: Disable Podman auto-update service
ansible.builtin.systemd_service:
name: podman-auto-update.service
enabled: false
state: stopped
when: not podman_enable_auto_update