From e0dfca225ad2568fd247e927323e44e5f908c5cd Mon Sep 17 00:00:00 2001 From: shockrah Date: Fri, 29 Apr 2022 23:54:00 -0700 Subject: [PATCH] + Kanboard setup - Removing last traces of vector.yml --- docker-host/setup/tasks/kanboard.yml | 45 ++++++++++++++++++++++++++++ docker-host/setup/tasks/vector.yml | 31 ------------------- docker-host/setup/vars/main.yml | 2 ++ 3 files changed, 47 insertions(+), 31 deletions(-) create mode 100644 docker-host/setup/tasks/kanboard.yml delete mode 100644 docker-host/setup/tasks/vector.yml diff --git a/docker-host/setup/tasks/kanboard.yml b/docker-host/setup/tasks/kanboard.yml new file mode 100644 index 0000000..0538db9 --- /dev/null +++ b/docker-host/setup/tasks/kanboard.yml @@ -0,0 +1,45 @@ +# Sets up an instance of Kanboard from top to bottom +--- +- hosts: leftcoastlab + become: yes + vars: + PRE: kanboard + DATA_VOLUME: "{{PRE}}-data-volume" + PLUGINS_VOLUME: "{{PRE}}-plugins-volume" + SSL_VOLUME: "{{PRE}}-ssl-volume" + tasks: + - name: Include Vars + include_vars: + dir: ../vars + + - name: Ensure Data volume exists + community.docker.docker_volume: + name: "{{DATA_VOLUME}}" + + - name: Ensure Plugins Volume exists + community.docker.docker_volume: + name: "{{PLUGINS_VOLUME}}" + + - name: Ensure SSL Volume exists + community.docker.docker_volume: + name: "{{SSL_VOLUME}}" + + - name: Ensure Docker service is active + community.docker.docker_container: + name: kanboard + image: kanboard/kanboard:latest + pull: yes + restart_policy: always + recreate: yes + ports: + - "{{ KANBOARD_PORT }}:80" + - "{{ KANBOARD_PORT_SSL }}:443" + volumes: + - "{{DATA_VOLUME}}:/var/www/app/data" + - "{{PLUGINS_VOLUME}}:/var/www/app/plugins" + - "{{SSL_VOLUME}}:/etc/nginx/ssl" + + + + + diff --git a/docker-host/setup/tasks/vector.yml b/docker-host/setup/tasks/vector.yml deleted file mode 100644 index cf58bd1..0000000 --- a/docker-host/setup/tasks/vector.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -- hosts: leftcoastlab - become: yes - tasks: - - name: Include Vars - include_vars: - dir: ../vars - - - name: Delete /opt/vector/ - file: - path: /opt/vector - state: absent - - - name: Stop Vector Container - community.docker.docker_container: - name: vector-host-metrics - state: absent - - - name: Stop Vector Container - community.docker.docker_container: - name: vector-host-metrics - state: absent - - - name: Delete Vector Image - community.docker.docker_image: - name: timberio/vector:latest-alpine - state: absent - - - - diff --git a/docker-host/setup/vars/main.yml b/docker-host/setup/vars/main.yml index 7f52cad..153f99c 100644 --- a/docker-host/setup/vars/main.yml +++ b/docker-host/setup/vars/main.yml @@ -8,3 +8,5 @@ LOKI_PORT: 3100 GRAFANA_PORT: 6000 SUBSONIC_PORT: 4040 PROM_PORT: 9090 +KANBOARD_PORT: 9238 +KANBOARD_PORT_SSL: 9239