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:
@@ -3,10 +3,16 @@
|
||||
|
||||
- name: Prune Podman resources
|
||||
containers.podman.podman_prune:
|
||||
container: "{{ podman_prune_options.container }}"
|
||||
image: "{{ podman_prune_options.image }}"
|
||||
network: "{{ podman_prune_options.network }}"
|
||||
system: "{{ podman_prune_options.system }}"
|
||||
system_all: "{{ podman_prune_options.system_all }}"
|
||||
volume: "{{ podman_prune_options.volume }}"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user