From b821ed209626f848e38aabd3cbd3a211fb7ff772 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Sat, 12 Dec 2020 17:34:06 +0100 Subject: [PATCH] Setup uritools container and http proxy --- pottwal.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pottwal.yml b/pottwal.yml index 0fdd72e..ef97f95 100644 --- a/pottwal.yml +++ b/pottwal.yml @@ -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: