refactored playbooks, tracking and implemented multi domain for mybb

This commit is contained in:
2023-12-06 16:29:34 +01:00
parent 4a540e21b3
commit 994b61dd1a
8 changed files with 208 additions and 174 deletions

View File

@@ -0,0 +1,5 @@
- name: configure {{domain}}.conf
template:
src: "roles/nginx-docker-reverse-proxy/templates/domain.conf.j2"
dest: "/etc/nginx/conf.d/{{domain}}.conf"
notify: restart nginx

View File

@@ -0,0 +1,4 @@
- name: Activate NGINX matomo tracking
include_role:
name: nginx-matomo-tracking
when: nginx_matomo_tracking_active and domain is defined

View File

@@ -0,0 +1,8 @@
- name: "include task receive certbot certificate"
include_tasks: recieve-certbot-certificate.yml
- name: "include task implement-matomo-tracking.yml"
include_tasks: implement-matomo-tracking.yml
- name: "include task create-domain-conf.yml"
include_tasks: create-domain-conf.yml