Refactor YAML formatting for consistency in podman configuration and systemd tasks
This commit is contained in:
@@ -50,7 +50,7 @@ podman_policy_trusted_registries:
|
||||
# Registry configuration
|
||||
insecure: false
|
||||
blocked: false
|
||||
unqualified_search: false # Don't search library namespace for unqualified images
|
||||
unqualified_search: false # Don't search library namespace for unqualified images
|
||||
|
||||
# Docker Hub (all namespaces) - use with caution in production
|
||||
- registry: "docker.io"
|
||||
@@ -58,7 +58,7 @@ podman_policy_trusted_registries:
|
||||
# Registry configuration
|
||||
insecure: false
|
||||
blocked: false
|
||||
unqualified_search: true # Primary search registry
|
||||
unqualified_search: true # Primary search registry
|
||||
|
||||
# Red Hat's official registry
|
||||
- registry: "registry.redhat.io"
|
||||
@@ -101,7 +101,7 @@ podman_policy_trusted_registries:
|
||||
# Registry configuration
|
||||
insecure: false
|
||||
blocked: false
|
||||
unqualified_search: false # Not commonly used for unqualified searches
|
||||
unqualified_search: false # Not commonly used for unqualified searches
|
||||
|
||||
# GitHub Container Registry
|
||||
- registry: "ghcr.io"
|
||||
@@ -109,7 +109,7 @@ podman_policy_trusted_registries:
|
||||
# Registry configuration
|
||||
insecure: false
|
||||
blocked: false
|
||||
unqualified_search: false # Not commonly used for unqualified searches
|
||||
unqualified_search: false # Not commonly used for unqualified searches
|
||||
|
||||
# GitLab Container Registry
|
||||
- registry: "registry.gitlab.com"
|
||||
@@ -117,7 +117,7 @@ podman_policy_trusted_registries:
|
||||
# Registry configuration
|
||||
insecure: false
|
||||
blocked: false
|
||||
unqualified_search: false # Not commonly used for unqualified searches
|
||||
unqualified_search: false # Not commonly used for unqualified searches
|
||||
|
||||
# Example production configuration with signature verification:
|
||||
# podman_policy_default_type: "reject"
|
||||
@@ -657,9 +657,9 @@ podman_systemd_options:
|
||||
### Prune Configuration
|
||||
podman_prune_enabled: true
|
||||
podman_prune_options:
|
||||
container: true # Remove stopped containers
|
||||
image: true # Remove unused images
|
||||
network: true # Remove unused networks
|
||||
system: true # Prune all unused data
|
||||
system_all: true # Prune all unused data including build cache
|
||||
volume: true # Remove unused volumes
|
||||
container: true # Remove stopped containers
|
||||
image: true # Remove unused images
|
||||
network: true # Remove unused networks
|
||||
system: true # Prune all unused data
|
||||
system_all: true # Prune all unused data including build cache
|
||||
volume: true # Remove unused volumes
|
||||
|
||||
@@ -3,9 +3,7 @@
|
||||
|
||||
- name: Generate systemd service files for containers
|
||||
vars:
|
||||
systemd_opts: "{{
|
||||
item.systemd if item.systemd is defined
|
||||
else (item.generate_systemd if item.generate_systemd is defined else {}) }}"
|
||||
systemd_opts: "{{ item.systemd if item.systemd is defined else (item.generate_systemd if item.generate_systemd is defined else {}) }}"
|
||||
containers.podman.podman_generate_systemd:
|
||||
name: "{{ item.name }}"
|
||||
dest: "{{ podman_systemd_dir }}"
|
||||
@@ -32,9 +30,7 @@
|
||||
|
||||
- name: Generate systemd service files for pods
|
||||
vars:
|
||||
systemd_opts: "{{
|
||||
item.systemd if item.systemd is defined
|
||||
else (item.generate_systemd if item.generate_systemd is defined else {}) }}"
|
||||
systemd_opts: "{{ item.systemd if item.systemd is defined else (item.generate_systemd if item.generate_systemd is defined else {}) }}"
|
||||
containers.podman.podman_generate_systemd:
|
||||
name: "{{ item.name }}"
|
||||
dest: "{{ podman_systemd_dir }}"
|
||||
|
||||
Reference in New Issue
Block a user