From ed29dc7221ea50ae2756489f4cce960aa1fb08d1 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Sun, 2 Jul 2023 16:31:38 +0200 Subject: [PATCH] Create spaceapi.n39.eu site on pottwal --- host-pottwal.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/host-pottwal.yml b/host-pottwal.yml index a09d591..e1f265f 100644 --- a/host-pottwal.yml +++ b/host-pottwal.yml @@ -24,6 +24,7 @@ - name: uptime.n39.eu - name: "{{ grafana_domain_name }}" - name: "{{ homebox_domain_name }}" + - name: spaceapi.n39.eu - role: penguineer.dehydrated_cron - role: dd24_dyndns_cron # variables are set in the inventory @@ -513,9 +514,27 @@ proxy_port: "{{ homebox_host_port }}" proxy_preserve_host: "On" + - name: Setup proxy site spaceapi.n39.eu + template: + src: templates/pottwal/spaceapi-apache-site.j2 + dest: /etc/apache2/sites-available/spaceapi.n39.eu.conf + mode: "0644" + vars: + site_name: "spaceapi.n39.eu" + proxy_preserve_host: "On" + notify: Restart apache2 + tags: + - dev + handlers: - name: Restart prosody community.docker.docker_container: name: prosody state: started restart: yes + + - name: Restart apache2 + service: + name: apache2 + state: restarted +