Add WeKan

This commit is contained in:
uumas
2022-03-15 21:26:58 +02:00
parent cee98cb62a
commit 1d70a35f9a
7 changed files with 69 additions and 10 deletions

1
roles/wekan/README.md Normal file
View File

@@ -0,0 +1 @@
Installs WeKan in docker

15
roles/wekan/meta/main.yml Normal file
View File

@@ -0,0 +1,15 @@
---
dependencies:
- role: container
docker_service: wekan
docker_image: quay.io/wekan/wekan
docker_image_http_port: 8080
docker_database: mongo
docker_volumes:
- wekan_data:/data
docker_env:
MONGO_URL: mongodb://wekan_db:27017/wekan
ROOT_URL: "https://{{ docker_vhost_domains.wekan[0] }}"
WRITABLE_PATH: /data

View File

@@ -0,0 +1,12 @@
---
- name: Get wekan data volume path from container creation output
set_fact:
wekan_data_volume: "{{ container_out.container.Mounts | selectattr('Destination', 'equalto', '/data') | join }}"
- name: Set wekan data volume owner
file:
path: "{{ wekan_data_volume.Source }}"
state: directory
owner: 999
group: 999