2024-04-25 14:34:20 +02:00
|
|
|
|
---
|
|
|
|
|
- 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:
|
2024-04-25 15:57:10 +02:00
|
|
|
|
src: env/wikijs.env.j2
|
2024-04-25 14:34:20 +02:00
|
|
|
|
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']
|
2024-06-26 11:16:52 +02:00
|
|
|
|
|
|
|
|
|
- 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']
|