forked from Netz39_Admin/netz39-infra-ansible
Setup uritools container and http proxy
This commit is contained in:
parent
303b9d34c5
commit
b821ed2096
1 changed files with 20 additions and 0 deletions
20
pottwal.yml
20
pottwal.yml
|
@ -13,6 +13,8 @@
|
||||||
openhab_configuration_source: https://github.com/netz39/n39-openhab.git
|
openhab_configuration_source: https://github.com/netz39/n39-openhab.git
|
||||||
openhab_configuration_version: master
|
openhab_configuration_version: master
|
||||||
|
|
||||||
|
uritools_host_port: 8080
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: docker_setup
|
- role: docker_setup
|
||||||
vars:
|
vars:
|
||||||
|
@ -110,6 +112,24 @@
|
||||||
site_name: openhab.n39.eu
|
site_name: openhab.n39.eu
|
||||||
proxy_port: "{{ openhab_host_port }}"
|
proxy_port: "{{ openhab_host_port }}"
|
||||||
|
|
||||||
|
- name: Ensure container for URI tools is running
|
||||||
|
docker_container:
|
||||||
|
name: uritools
|
||||||
|
image: mrtux/clean_uri
|
||||||
|
pull: true
|
||||||
|
state: started
|
||||||
|
detach: yes
|
||||||
|
ports:
|
||||||
|
- "{{ uritools_host_port }}:8080"
|
||||||
|
restart_policy: unless-stopped
|
||||||
|
|
||||||
|
- name: Setup proxy site uritools.n39.eu
|
||||||
|
include_role:
|
||||||
|
name: setup-http-site-proxy
|
||||||
|
vars:
|
||||||
|
site_name: uritools.n39.eu
|
||||||
|
proxy_port: "{{ uritools_host_port }}"
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- name: restart openhab
|
- name: restart openhab
|
||||||
docker_container:
|
docker_container:
|
||||||
|
|
Loading…
Reference in a new issue