otter: add web config

main
Jef Roosens 2025-03-20 09:21:36 +01:00
parent 10664f10cb
commit ee7ee2b19d
Signed by: Jef Roosens
GPG Key ID: 02D4C0997E74717B
4 changed files with 18 additions and 0 deletions
roles/otter-web

View File

@ -47,3 +47,6 @@
[actual]
192.168.0.3 static_ip=192.168.0.3
[otter]
192.168.0.2 static_ip=192.168.0.2

View File

@ -0,0 +1,3 @@
---
dependencies:
- role: caddy

View File

@ -0,0 +1,9 @@
---
- name: Ensure Caddyfile is present
template:
src: 'otter.Caddyfile.j2'
dest: '/etc/caddy/otter.Caddyfile'
owner: root
group: root
mode: '0644'
notify: caddy-reload

View File

@ -0,0 +1,3 @@
otter.roosens.me {
reverse_proxy {{ hostvars[groups['otter'][0]].static_ip }}:8017
}