mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-23 10:45:03 +01:00
43 lines
1.3 KiB
YAML
43 lines
1.3 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
|
|
loop: "{{ domains }}"
|
|
loop_control:
|
|
loop_var: domain
|
|
vars:
|
|
nginx_docker_reverse_proxy_extra_configuration: "client_max_body_size {{wordpress_max_upload_size}};"
|
|
|
|
- name: "create {{docker_compose_instance_directory}}"
|
|
file:
|
|
path: "{{docker_compose_instance_directory}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: "Transfering upload.ini to {{docker_compose_instance_directory}}"
|
|
template:
|
|
src: upload.ini.j2
|
|
dest: "{{docker_compose_instance_directory}}upload.ini"
|
|
notify:
|
|
- docker compose project setup
|
|
- rebuild wordpress container
|
|
|
|
- name: "Transfering Dockerfile to {{docker_compose_instance_directory}}"
|
|
copy:
|
|
src: Dockerfile
|
|
dest: "{{docker_compose_instance_directory}}Dockerfile"
|
|
notify:
|
|
- docker compose project setup
|
|
- rebuild wordpress container
|
|
|
|
- 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
|