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:
@@ -663,8 +663,18 @@ podman_systemd_options:
|
||||
podman_prune_enabled: true
|
||||
podman_prune_options:
|
||||
container: true # Remove stopped containers
|
||||
container_filters:
|
||||
until: "24h" # Keep containers newer than this age
|
||||
executable: "podman" # Podman binary path
|
||||
image: true # Remove unused images
|
||||
image_filters:
|
||||
until: "24h" # Keep images newer than this age
|
||||
network: true # Remove unused networks
|
||||
system: true # Prune all unused data
|
||||
system_all: true # Prune all unused data including build cache
|
||||
network_filters:
|
||||
until: "24h" # Keep networks newer than this age
|
||||
system: false # Prune all unused data. This flag implicitly prunes all container, image, network and volumes. Always returns 'changed'
|
||||
system_all: false # Prune all unused data including build cache
|
||||
system_volumes: false # When system=true, also prune unused volumes
|
||||
volume: true # Remove unused volumes
|
||||
volume_filters:
|
||||
until: "24h" # Keep volumes newer than this age
|
||||
|
||||
Reference in New Issue
Block a user