Comment blocks now stay within three lines and explain only the non-obvious. Long histories, include examples, and commented-out code are gone. No task, key, or value changed; the only data change is comment text inside the generated unit files.
28 lines
815 B
YAML
28 lines
815 B
YAML
---
|
|
# Set gather_facts: true, because these values come from ansible_facts.
|
|
podman_user: "{{ ansible_facts['user_id'] }}"
|
|
|
|
podman_data_dir: "{{ ansible_facts['user_dir'] }}/podman-data"
|
|
quadlet_dir: "{{ ansible_facts['user_dir'] }}/.config/containers/systemd"
|
|
|
|
# Caddy publishes 80/443, which needs the unprivileged port floor lowered.
|
|
podman_unprivileged_port_start: 80
|
|
|
|
caddy_name: caddy
|
|
caddy_unit: "{{ caddy_name }}.service"
|
|
|
|
# Fully qualified, because short names prompt for a registry and the unit has
|
|
# no TTY.
|
|
caddy_image: docker.io/library/caddy:latest
|
|
|
|
host_directory: "{{ podman_data_dir }}/caddy"
|
|
caddyfile_path: "{{ host_directory }}/conf/Caddyfile"
|
|
|
|
caddy_dropin_dir: "{{ quadlet_dir }}/{{ caddy_name }}.container.d"
|
|
|
|
# 443/udp carries HTTP/3.
|
|
caddy_ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
- "443:443/udp"
|