mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-14 00:41:06 +01:00
68 lines
2.0 KiB
YAML
68 lines
2.0 KiB
YAML
---
|
|
- name: include docker vars
|
|
include_vars: vars/docker-database-service.yml.j2
|
|
|
|
- name: create central database
|
|
include_role:
|
|
name: docker-{{database_type}}
|
|
when: enable_central_database | bool
|
|
|
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
|
include_tasks: nginx-docker-proxy-domain.yml
|
|
vars:
|
|
nginx_docker_reverse_proxy_extra_configuration: "client_max_body_size 31M;"
|
|
|
|
- name: "create {{path_docker_compose_instances}}mailu"
|
|
file:
|
|
path: "{{path_docker_compose_instances}}mailu"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: "create {{path_administrator_scripts}}mailu"
|
|
file:
|
|
path: "{{path_administrator_scripts}}mailu"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: "create /etc/mailu/"
|
|
file:
|
|
path: "/etc/mailu"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: "create /etc/mailu/certs"
|
|
file:
|
|
path: "/etc/mailu/certs"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: add docker-compose.yml
|
|
template:
|
|
src: "docker-compose.yml.j2"
|
|
dest: "{{docker_compose_instance_directory}}docker-compose.yml"
|
|
notify: docker compose project setup
|
|
|
|
- name: add mailu.env
|
|
template:
|
|
src: "mailu.env.j2"
|
|
dest: "{{docker_compose_instance_directory}}mailu.env"
|
|
notify: docker compose project setup
|
|
|
|
- name: add deploy-letsencrypt-mailu.sh
|
|
template:
|
|
src: "deploy-letsencrypt-mailu.sh.j2"
|
|
dest: "{{path_administrator_scripts}}mailu/deploy-letsencrypt-mailu.sh"
|
|
|
|
- name: configure deploy-letsencrypt-mailu.service
|
|
template:
|
|
src: "deploy-letsencrypt-mailu.service.j2"
|
|
dest: "/etc/systemd/system/deploy-letsencrypt-mailu.service"
|
|
notify: restart deploy-letsencrypt-mailu.service
|
|
|
|
- name: configure deploy-letsencrypt-mailu.timer
|
|
template:
|
|
src: "deploy-letsencrypt-mailu.timer.j2"
|
|
dest: "/etc/systemd/system/deploy-letsencrypt-mailu.timer"
|
|
register: deploy_letsencrypt_mailu_timer
|
|
changed_when: deploy_letsencrypt_mailu_timer.changed or activate_all_timers | bool
|
|
notify: restart deploy-letsencrypt-mailu.timer |