2020-12-24 14:27:31 +01:00
|
|
|
---
|
|
|
|
|
2023-12-06 17:59:57 +01:00
|
|
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
|
|
|
include_tasks: nginx-docker-proxy-domain.yml
|
|
|
|
loop: "{{ domains }}"
|
2023-12-06 14:40:18 +01:00
|
|
|
loop_control:
|
2023-12-06 17:59:57 +01:00
|
|
|
loop_var: domain
|
|
|
|
vars:
|
|
|
|
client_max_body_size: "{{wordpress_max_upload_size}}"
|
2020-12-24 14:27:31 +01:00
|
|
|
|
2023-12-05 18:45:26 +01:00
|
|
|
- name: "create {{docker_compose_instance_directory}}"
|
2022-02-02 12:12:08 +01:00
|
|
|
file:
|
2023-12-05 18:45:26 +01:00
|
|
|
path: "{{docker_compose_instance_directory}}"
|
2022-02-02 12:12:08 +01:00
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
|
2023-12-05 18:45:26 +01:00
|
|
|
- name: "Transfering upload.ini to {{docker_compose_instance_directory}}"
|
2023-09-11 18:17:10 +02:00
|
|
|
template:
|
|
|
|
src: upload.ini.j2
|
2023-12-05 18:45:26 +01:00
|
|
|
dest: "{{docker_compose_instance_directory}}upload.ini"
|
2023-09-11 18:17:10 +02:00
|
|
|
notify:
|
|
|
|
- recreate wordpress
|
|
|
|
- rebuild wordpress container
|
|
|
|
|
2023-12-05 18:45:26 +01:00
|
|
|
- name: "Transfering Dockerfile to {{docker_compose_instance_directory}}"
|
2023-09-11 18:17:10 +02:00
|
|
|
copy:
|
|
|
|
src: Dockerfile
|
2023-12-05 18:45:26 +01:00
|
|
|
dest: "{{docker_compose_instance_directory}}Dockerfile"
|
2023-09-11 18:17:10 +02:00
|
|
|
notify:
|
|
|
|
- recreate wordpress
|
|
|
|
- rebuild wordpress container
|
|
|
|
|
2023-12-05 18:45:26 +01:00
|
|
|
- name: "add docker-compose.yml to {{docker_compose_instance_directory}}"
|
|
|
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
2022-02-02 12:12:08 +01:00
|
|
|
notify: recreate wordpress
|