mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-11-24 16:28:03 +01:00
20 lines
425 B
YAML
20 lines
425 B
YAML
---
|
|
- name: Update caddy config
|
|
hosts: servers
|
|
gather_facts: false
|
|
become: true
|
|
tasks:
|
|
- name: Write Caddyfile
|
|
ansible.builtin.copy:
|
|
src: files/Caddyfile
|
|
dest: /etc/caddy/Caddyfile
|
|
mode: "0644"
|
|
owner: root
|
|
group: root
|
|
notify:
|
|
- Reload caddy
|
|
handlers:
|
|
- name: Reload caddy
|
|
ansible.builtin.service:
|
|
name: caddy
|
|
state: reloaded
|