- 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.
19 lines
1014 B
YAML
19 lines
1014 B
YAML
---
|
|
# Prune unused Podman resources
|
|
|
|
- name: Prune Podman resources
|
|
containers.podman.podman_prune:
|
|
container: "{{ podman_prune_options.container | default(omit) }}"
|
|
container_filters: "{{ podman_prune_options.container_filters | default(omit) }}"
|
|
executable: "{{ podman_prune_options.executable | default(omit) }}"
|
|
image: "{{ podman_prune_options.image | default(omit) }}"
|
|
image_filters: "{{ podman_prune_options.image_filters | default(omit) }}"
|
|
network: "{{ podman_prune_options.network | default(omit) }}"
|
|
network_filters: "{{ podman_prune_options.network_filters | default(omit) }}"
|
|
system: "{{ podman_prune_options.system | default(omit) }}"
|
|
system_all: "{{ podman_prune_options.system_all | default(omit) }}"
|
|
system_volumes: "{{ podman_prune_options.system_volumes | default(omit) }}"
|
|
volume: "{{ podman_prune_options.volume | default(omit) }}"
|
|
volume_filters: "{{ podman_prune_options.volume_filters | default(omit) }}"
|
|
when: podman_prune_enabled | bool
|