Setup uritools container and http proxy

This commit is contained in:
Stefan Haun 2020-12-12 17:34:06 +01:00
parent 303b9d34c5
commit b821ed2096

View file

@ -13,6 +13,8 @@
openhab_configuration_source: https://github.com/netz39/n39-openhab.git
openhab_configuration_version: master
uritools_host_port: 8080
roles:
- role: docker_setup
vars:
@ -110,6 +112,24 @@
site_name: openhab.n39.eu
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:
- name: restart openhab
docker_container: