+ Kanboard setup
- Removing last traces of vector.yml
This commit is contained in:
parent
51e474a95f
commit
e0dfca225a
45
docker-host/setup/tasks/kanboard.yml
Normal file
45
docker-host/setup/tasks/kanboard.yml
Normal file
@ -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"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -8,3 +8,5 @@ LOKI_PORT: 3100
|
|||||||
GRAFANA_PORT: 6000
|
GRAFANA_PORT: 6000
|
||||||
SUBSONIC_PORT: 4040
|
SUBSONIC_PORT: 4040
|
||||||
PROM_PORT: 9090
|
PROM_PORT: 9090
|
||||||
|
KANBOARD_PORT: 9238
|
||||||
|
KANBOARD_PORT_SSL: 9239
|
||||||
|
Loading…
Reference in New Issue
Block a user