-
Story
-
Resolution: Unresolved
-
Undefined
-
None
-
Low
-
rhel-system-roles
-
0
-
False
-
False
-
-
Yes
-
Red Hat Enterprise Linux
-
None
-
None
-
None
-
Enhancement
-
-
In Progress
-
Required
-
Required
-
Unspecified
-
None
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?
```yaml
- 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 }
- 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.podman
```
- links to