otter: add web config
This commit is contained in:
parent
10664f10cb
commit
ee7ee2b19d
4 changed files with 18 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
3
roles/otter-web/meta/main.yml
Normal file
3
roles/otter-web/meta/main.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
dependencies:
|
||||
- role: caddy
|
||||
9
roles/otter-web/tasks/main.yml
Normal file
9
roles/otter-web/tasks/main.yml
Normal 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
|
||||
3
roles/otter-web/templates/otter.Caddyfile.j2
Normal file
3
roles/otter-web/templates/otter.Caddyfile.j2
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
otter.roosens.me {
|
||||
reverse_proxy {{ hostvars[groups['otter'][0]].static_ip }}:8017
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue