mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented new upload limit
This commit is contained in:
@@ -5,18 +5,34 @@
|
||||
|
||||
- name: configure wordpress nginx configurations
|
||||
vars:
|
||||
client_max_body_size: "2M"
|
||||
client_max_body_size: "{{wordpress_max_upload_size}}"
|
||||
domain: "{{item}}"
|
||||
template: src=roles/docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{ item }}.conf
|
||||
loop: "{{domains}}"
|
||||
notify: restart nginx
|
||||
|
||||
- name: "create {{path_docker_compose_files}}wordpress/"
|
||||
- name: "create {{docker_compose_wordpress_path}}"
|
||||
file:
|
||||
path: "{{path_docker_compose_files}}wordpress/"
|
||||
path: "{{docker_compose_wordpress_path}}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: add docker-compose.yml
|
||||
template: src=docker-compose.yml.j2 dest={{path_docker_compose_files}}wordpress/docker-compose.yml
|
||||
- name: "Transfering upload.ini to {{docker_compose_wordpress_path}}"
|
||||
template:
|
||||
src: upload.ini.j2
|
||||
dest: "{{docker_compose_wordpress_path}}upload.ini"
|
||||
notify:
|
||||
- recreate wordpress
|
||||
- rebuild wordpress container
|
||||
|
||||
- name: "Transfering Dockerfile to {{docker_compose_wordpress_path}}"
|
||||
copy:
|
||||
src: Dockerfile
|
||||
dest: "{{docker_compose_wordpress_path}}Dockerfile"
|
||||
notify:
|
||||
- recreate wordpress
|
||||
- rebuild wordpress container
|
||||
|
||||
- name: "add docker-compose.yml to {{docker_compose_wordpress_path}}"
|
||||
template: src=docker-compose.yml.j2 dest={{docker_compose_wordpress_path}}docker-compose.yml
|
||||
notify: recreate wordpress
|
||||
|
Reference in New Issue
Block a user