docker-services/tasks/wikijs.yml
2024-06-26 11:16:52 +02:00

51 lines
1.1 KiB
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']
- name: wikijs | create custom CSS path
file:
path: /opt/docker-compose/wikijs/custom/css
state: directory
owner: root
group: root
mode: 0755
when:
- wikijs_custom_css is defined
tags: ['docker_wikijs']