calathea: add config
This commit is contained in:
parent
2cfd746c52
commit
787a63ea0d
11 changed files with 137 additions and 1 deletions
3
roles/calathea-web/meta/main.yml
Normal file
3
roles/calathea-web/meta/main.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
dependencies:
|
||||
- role: caddy
|
||||
9
roles/calathea-web/tasks/main.yml
Normal file
9
roles/calathea-web/tasks/main.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
- name: Ensure Caddyfile is present
|
||||
template:
|
||||
src: 'calathea.Caddyfile.j2'
|
||||
dest: '/etc/caddy/calathea.Caddyfile'
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: caddy-reload
|
||||
3
roles/calathea-web/templates/calathea.Caddyfile.j2
Normal file
3
roles/calathea-web/templates/calathea.Caddyfile.j2
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
plants.roosens.me {
|
||||
reverse_proxy {{ hostvars[groups['calathea'][0]].static_ip }}:8013
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue