--- # Append the site blocks to the shared Caddyfile. The file is bind-mounted into # Caddy, so the reload handler is enough. blockinfile is idempotent. - name: "Add the {{ host }} site blocks to the Caddyfile" tags: [caddy] ansible.builtin.blockinfile: path: "{{ caddyfile_path }}" marker: "# {mark} Ansible managed Caddy snippet for {{ host }}" block: "{{ snippet_block }}" create: true owner: "{{ podman_user }}" group: "{{ podman_user }}" mode: '0644' notify: Reload Caddy