--- - name: "include docker/compose/database.yml" include_tasks: docker/compose/database.yml - 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 {{docker_compose_instance_directory}}" file: path: "{{docker_compose_instance_directory}}" state: directory mode: 0755 - name: "create /etc/mailu/" file: path: "/etc/mailu" state: directory mode: 0755 - name: "Include the nginx-docker-cert-deploy role" include_role: name: nginx-docker-cert-deploy - 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: flush docker service meta: flush_handlers when: mode_setup |bool - name: execute database migration command: cmd: "docker compose -p mailu exec admin flask mailu admin admin {{primary_domain}} {{mailu_initial_root_password}}" chdir: "{{docker_compose_instance_directory}}" ignore_errors: true when: mode_setup |bool