diff --git a/docker-host/setup/tasks/kanboard.yml b/docker-host/setup/tasks/kanboard.yml index 0538db9..68cd97b 100644 --- a/docker-host/setup/tasks/kanboard.yml +++ b/docker-host/setup/tasks/kanboard.yml @@ -39,6 +39,24 @@ - "{{PLUGINS_VOLUME}}:/var/www/app/plugins" - "{{SSL_VOLUME}}:/etc/nginx/ssl" + - name: Create Nginx Config for service + template: + dest: /etc/nginx/sites-available/todo.lablad + src: ../templates/proxy.conf.j2 + notify: + - restart-nginx + vars: + SERVER_NAME: todo.lablad + PORT: KANBOARD_PORT + + - name: Restart Nginx + service: + name: nginx + state: restarted + + + + diff --git a/docker-host/setup/tasks/nginx.yml b/docker-host/setup/tasks/nginx.yml index ab4e599..dbde61c 100644 --- a/docker-host/setup/tasks/nginx.yml +++ b/docker-host/setup/tasks/nginx.yml @@ -44,6 +44,8 @@ - ../files/music.lablad - ../files/files.lablad - ../files/metrics.lablad + - ../files/metrics.lablad + - ../files/todo.lablad - name: Enable Sites file: @@ -55,6 +57,7 @@ - music.lablad - files.lablad - metrics.lablad + - todo.lablad notify: - restart-nginx diff --git a/docker-host/setup/tasks/prometheus.yml b/docker-host/setup/tasks/prometheus.yml index f7d3dfb..6bae2de 100644 --- a/docker-host/setup/tasks/prometheus.yml +++ b/docker-host/setup/tasks/prometheus.yml @@ -8,29 +8,29 @@ include_vars: dir: ../vars -# - name: Download prometheus Node Explorer static binary tarball -# get_url: -# url: "{{ PROM_URL }}" -# dest: /tmp/prom-node-exporer.tar.gz -# -# - name: Untar node exporter tarball package -# unarchive: -# src: /tmp/prom-node-exporer.tar.gz -# dest: /opt/prom-node-exporter -# creates: /opt/prom-node-exporter -# remote_src: yes -# -# - name: Copy Unit file for node exporter -# copy: -# src: ../files/services/node_exporter.service -# dest: /etc/systemd/system/node_exporter.service -# -# - name: Install Node Exporter Service and Start -# systemd: -# daemon_reload: yes -# name: node_exporter -# state: restarted -# enabled: yes + - name: Download prometheus Node Explorer static binary tarball + get_url: + url: "{{ PROM_URL }}" + dest: /tmp/prom-node-exporer.tar.gz + + - name: Untar node exporter tarball package + unarchive: + src: /tmp/prom-node-exporer.tar.gz + dest: /opt/prom-node-exporter + creates: /opt/prom-node-exporter + remote_src: yes + + - name: Copy Unit file for node exporter + copy: + src: ../files/services/node_exporter.service + dest: /etc/systemd/system/node_exporter.service + + - name: Install Node Exporter Service and Start + systemd: + daemon_reload: yes + name: node_exporter + state: restarted + enabled: yes - name: Ensure Prom Docker Volume Exists community.docker.docker_volume: