generated from linux-system-roles/template
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Looking for advice on how to mount host files with configuration into containers, and get restarted containers if changes occur in the configuration files.
In the example below configuration file for caddy mounted properly, but it not reflect later changes on it, since the role cannot detect "dependant" services of the configuration file and restart it.
Is there any workaround for this case or already available configuration model?
- name: Manage caddy via podman quadlet
hosts: nms
become: true
tags:
- caddy
vars:
podman_create_host_directories: true
podman_quadlet_specs:
- name: caddy
file: /opt/nms/Caddyfile
file_content: |
{
auto_https off
}
http://127.0.0.1 {
respond "ok (loopback)" 200
}
https://127.0.0.1 {
tls internal
respond "ok (loopback)" 200
}
- name: caddy
type: container
Unit:
Description: caddy
Install:
WantedBy: default.target
Container:
Image: "docker.io/caddy:2.10.2"
ContainerName: caddy
Network: nms
Volume: "/opt/nms/Caddyfile:/etc/caddy/Caddyfile:ro"
PublishPort:
- 80:80
- 443:443
roles:
- fedora.linux_system_roles.podmanReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels