Implements the Caddy reverse proxy role (ADR-024): builds boma/caddy-gandi:latest on-host (caddy-dns/gandi plugin), renders Caddyfile from route catalog, brings Compose project up. Adds community.docker to requirements.yml, production group_vars, and a caddy-image Makefile target. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
22 lines
745 B
YAML
22 lines
745 B
YAML
---
|
|
- name: Verify
|
|
hosts: all
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
- name: Slurp the rendered Caddyfile
|
|
ansible.builtin.slurp:
|
|
src: /opt/services/reverse_proxy/Caddyfile
|
|
register: _caddyfile
|
|
tags: [verify]
|
|
|
|
- name: Assert Caddyfile exists and contains expected content
|
|
ansible.builtin.assert:
|
|
that:
|
|
- _caddyfile.content | b64decode | length > 0
|
|
- "'dns gandi' in (_caddyfile.content | b64decode)"
|
|
- "'respond \"boma reverse proxy\"' in (_caddyfile.content | b64decode)"
|
|
- "'app.example.test' in (_caddyfile.content | b64decode)"
|
|
fail_msg: "Caddyfile is missing expected content"
|
|
success_msg: "Caddyfile rendered correctly"
|
|
tags: [verify]
|