feat(reverse-proxy): Add Caddy for reverse proxy
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
15
roles/reverse_proxy/tasks/configure.yml
Normal file
15
roles/reverse_proxy/tasks/configure.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
- name: Ensure Caddy configuration directory exists
|
||||
ansible.builtin.file:
|
||||
path: /etc/caddy
|
||||
state: directory
|
||||
mode: "0755"
|
||||
become: true
|
||||
|
||||
- name: Deploy Caddy configuration file
|
||||
ansible.builtin.template:
|
||||
src: Caddyfile.j2
|
||||
dest: "{{ caddy_config_path }}"
|
||||
mode: "0644"
|
||||
become: true
|
||||
notify: Restart Caddy
|
||||
Reference in New Issue
Block a user