otter: add web config
parent
10664f10cb
commit
ee7ee2b19d
roles/otter-web
|
@ -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
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
dependencies:
|
||||
- role: caddy
|
|
@ -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
|
|
@ -0,0 +1,3 @@
|
|||
otter.roosens.me {
|
||||
reverse_proxy {{ hostvars[groups['otter'][0]].static_ip }}:8017
|
||||
}
|
Loading…
Reference in New Issue