Skip to content
Snippets Groups Projects
Select Git revision
  • 89d3b7ac611049b7b152e3ceea3bb06b6282e2a4
  • master default protected
  • th/caddy-wip
  • th/caddy
  • th/lego
  • th/acmebot
  • pyzabbix
  • th/keycloak
8 results

site.yml

  • Thomas Schneider's avatar
    Thomas Schneider authored
    This way, it can be easily included by other roles in order to provide Caddy
    configuration.
    89d3b7ac
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    site.yml 340 B
    ---
    
    - name: Configure Caddy site drop-in {{ site_name }}
      ansible.builtin.template:
        src: site.j2
        dest: /etc/caddy/sites-available/{{ site_name | urlencode }}
        validate: caddy validate --adapter caddyfile --config %s
        owner: root
        group: root
        mode: "0644"
      notify:
        - Reload Caddy
      tags:
        - caddy
        - config