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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user