Implemented msmtp for wordpress

This commit is contained in:
2025-04-03 14:05:00 +02:00
parent fa10fe558d
commit 170636d098
16 changed files with 200 additions and 42 deletions

View File

@@ -3,32 +3,39 @@
include_role:
name: docker-central-database
- name: "include role nginx-domain-setup for {{application_id}}"
- name: "include role nginx-domain-setup for {{ application_id }}"
include_role:
name: nginx-domain-setup
loop: "{{ domains.wordpress }}"
loop_control:
loop_var: domain
vars:
nginx_docker_reverse_proxy_extra_configuration: "client_max_body_size {{wordpress_max_upload_size}};"
http_port: "{{ ports.localhost.http[application_id] }}"
nginx_docker_reverse_proxy_extra_configuration: "client_max_body_size {{ wordpress_max_upload_size }};"
http_port: "{{ ports.localhost.http[application_id] }}"
- name: "Transfering upload.ini to {{docker_compose.directories.instance}}"
- name: "Transfering upload.ini to {{ docker_compose.directories.instance }}"
template:
src: upload.ini.j2
dest: "{{docker_compose.directories.instance}}upload.ini"
dest: "{{ docker_compose.directories.instance }}upload.ini"
notify:
- docker compose project setup
- rebuild wordpress container
- name: "Transfering Dockerfile to {{docker_compose.directories.instance}}"
- name: "Transfering msmtp.conf to {{ docker_compose.directories.instance }}"
template:
src: "{{ playbook_dir }}/roles/msmtp/templates/msmtprc.conf.j2"
dest: "{{ docker_compose.directories.instance }}msmtp.conf"
notify:
- docker compose project setup
- rebuild wordpress container
- name: "Transfering Dockerfile to {{ docker_compose.directories.instance }}"
copy:
src: Dockerfile
dest: "{{docker_compose.directories.instance}}Dockerfile"
dest: "{{ docker_compose.directories.instance }}Dockerfile"
notify:
- docker compose project setup
- rebuild wordpress container
- name: "copy docker-compose.yml and env file"
include_tasks: copy-docker-compose-and-env.yml