Update with latest out of band changes

This commit is contained in:
Daniel Akulenok
2026-01-21 10:11:18 +01:00
parent 17fea0e02b
commit 6177112df8
6 changed files with 61 additions and 58 deletions

View File

@@ -5,6 +5,7 @@
## 🚀 Quick Start
### 1. Basic Setup
```yaml
- hosts: servers
roles:
@@ -38,7 +39,7 @@ podman_containers:
env:
DATABASE_URL: "postgresql://postgres@db:5432/app"
- name: database
- name: postgres
image: postgres:15
volumes:
- "db-data:/var/lib/postgresql/data"
@@ -134,9 +135,6 @@ podman_networks:
#### Volumes
```yaml
# Toggle automatic creation of host directories for bind mounts
podman_create_volumes: true
podman_volumes:
- name: db_data
# state defaults to 'quadlet'
@@ -174,6 +172,15 @@ podman_policy_trusted_registries:
insecure: false
mirror:
- location: "backup.company.com"
# Additional registries (for special mirror/proxy configurations)
podman_registries_additional:
- location: "internal-mirror.company.com"
insecure: false
blocked: false
mirror:
- location: "docker.io"
insecure: false
```
#### Systemd Service Generation
@@ -190,6 +197,13 @@ podman_systemd_options:
pod_prefix: "pod-"
```
#### Container Defaults
```yaml
# Auto-remove containers when they exit (applies to all containers unless overridden)
podman_auto_remove: true
```
#### Resource Cleanup
```yaml
@@ -217,8 +231,11 @@ podman_storage_runroot: /run/containers/storage
```yaml
podman_enable_socket: true # Enable Podman socket
podman_enable_api_service: true # Enable REST API
podman_enable_auto_update: true # Enable automatic container updates
```
> **Note:** When using `podman_enable_auto_update`, containers must use **fully qualified image names** including the registry (e.g., `docker.io/postgres:15` instead of `postgres:15`) and should have `AutoUpdate=registry` in their `quadlet_options` or be configured with Quadlet state.
---
## 🏷️ Available Tags
@@ -352,9 +369,6 @@ ansible-playbook -t podman-networks playbook.yml
env:
DATABASE_URL: "postgresql://postgres:{{ vault_db_password }}@postgres:5432/myapp"
REDIS_URL: "redis://redis:6379"
depends_on:
- postgres
- redis
```
---