mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
solved wordpress tracking bug
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
---
|
||||
- name: recieve wordpress certificates
|
||||
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{item}}
|
||||
loop: "{{domains}}"
|
||||
- name: recieve wordpress certificates for {{domain}}
|
||||
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{domain}}
|
||||
|
||||
- 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}}"
|
||||
domain: "{{item}}"
|
||||
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{ item }}.conf
|
||||
loop: "{{domains}}"
|
||||
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{ domain }}.conf
|
||||
notify: restart nginx
|
||||
|
||||
- name: "create {{docker_compose_wordpress_path}}"
|
||||
|
@@ -13,8 +13,8 @@ This Ansible role automates the integration of Matomo tracking code into Nginx-s
|
||||
|
||||
## Role Variables
|
||||
- `matomo_domain`: The domain of your Matomo installation.
|
||||
- `base_domain`: The base domain of the website you wish to track.
|
||||
- `matomo_site_id`: The site ID configured in your Matomo dashboard.
|
||||
- `domain`: The domain of the website you wish to track.
|
||||
- `matomo_auth_token`: Matomo auth token
|
||||
|
||||
## Dependencies
|
||||
- None. This role is designed to be included in Nginx server block configurations.
|
||||
|
Reference in New Issue
Block a user