docker-services/tasks/wikijs.yml
Ludovic Cartier 49ffe4f582 env, not yml
2024-04-25 15:57:10 +02:00

40 lines
855 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- name: wikijs | check vars are defined
assert:
that:
- wikijs_domain is defined
- wikijs_db_root_password is defined
- wikijs_db_name is defined
- wikijs_db_user is defined
- wikijs_db_password is defined
tags: ['docker_wikijs']
- include_tasks: base.yml
tags: ['docker_wikijs']
- name: wikijs | copy env file
template:
src: env/wikijs.env.j2
dest: /opt/docker-compose/wikijs/.env
owner: root
group: root
mode: 0644
notify: wikijs-restart
tags: [ 'docker_wikijs' ]
- name: wikijs | create docker network
docker_network:
name: 'wikijs'
tags:
- wikijs
tags: ['docker_wikijs']
- name: wikijs | create docker volumes
docker_volume:
name: "{{ item }}"
with_items:
- wikijs__config
- wikijs__data
- wikijs_db__var_lib_mysql
tags: ['docker_wikijs']