caddy.yml 346 Bytes
Newer Older
HgO's avatar
HgO committed
1
2
- name: Copie de la configuration Caddy2
  template:
3
    src: "{{ web_app_caddy_template }}"
HgO's avatar
HgO committed
4
    dest: "{{ caddy_vhosts_dir }}/{{ web_app_owner }}.conf"
HgO's avatar
HgO committed
5
6
    owner: root
    group: root
HgO's avatar
HgO committed
7
    mode: "u=rw,go=r"
HgO's avatar
HgO committed
8
    validate: caddy validate --adapter caddyfile --config %s
HgO's avatar
HgO committed
9
  notify: reload caddy
HgO's avatar
HgO committed
10
11

- name: Trigger Caddy handlers
Tharyrok's avatar
Tharyrok committed
12
  meta: flush_handlers