computer-playbook/roles/docker-wordpress/tasks/main.yml

43 lines
1.3 KiB
YAML
Raw Normal View History

2020-12-24 14:27:31 +01:00
---
- 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
2020-12-24 14:27:31 +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:
loop_var: domain
vars:
nginx_docker_reverse_proxy_extra_configuration: "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}}"
file:
2023-12-05 18:45:26 +01:00
path: "{{docker_compose_instance_directory}}"
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:
- docker compose project setup
2023-09-11 18:17:10 +02:00
- 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:
- docker compose project setup
2023-09-11 18:17:10 +02:00
- 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
notify: docker compose project setup