refactored docker and nginx roles, to make them more modular

This commit is contained in:
2023-12-06 17:59:57 +01:00
parent 994b61dd1a
commit ed40ee1f42
24 changed files with 58 additions and 135 deletions

View File

@@ -1,10 +0,0 @@
- name: Activate NGINX matomo tracking for {{domain}}
include_role:
name: nginx-matomo-tracking
when: nginx_matomo_tracking_active
- name: configure wordpress nginx configurations
vars:
client_max_body_size: "{{wordpress_max_upload_size}}"
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{ domain }}.conf
notify: restart nginx

View File

@@ -1,19 +1,12 @@
---
- name: "include task receive certbot certificate"
include_tasks: recieve-certbot-certificate.yml
vars:
domain: "{{ item }}"
loop: "{{ wordpress_domains }}"
loop_control:
loop_var: item
- name: "include task create wordpress nginx"
include_tasks: create-wordpress-nginx.yml
vars:
domain: "{{ item }}"
loop: "{{ wordpress_domains }}"
- name: "include tasks nginx-docker-proxy-domain.yml"
include_tasks: nginx-docker-proxy-domain.yml
loop: "{{ domains }}"
loop_control:
loop_var: item
loop_var: domain
vars:
client_max_body_size: "{{wordpress_max_upload_size}}"
- name: "create {{docker_compose_instance_directory}}"
file: