Implemented new upload limit

This commit is contained in:
2023-09-11 18:17:10 +02:00
parent 8407c288fb
commit c0be4a912f
6 changed files with 43 additions and 9 deletions

View File

@@ -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