---
- name: π« Exclude global IPs in Matomo
uri_retry:
url: "{{ matomo_index_php_url }}"
method: POST
body_format: form-urlencoded
body:
module: API
method: SitesManager.setGlobalExcludedIps
excludedIps: "{{ MATOMO_EXCLUDED_IPS | join(',') }}"
format: json
token_auth: "{{ matomo_token_value }}"
return_content: true
status_code: 200
register: matomo_exclude
until: matomo_exclude.status == 200
retries: 5
delay: 10
- name: π« Exclude CSP-CheckerBot user agent in Matomo
uri_retry:
url: "{{ matomo_index_php_url }}"
method: POST
body_format: form-urlencoded
body:
module: API
method: SitesManager.setGlobalExcludedUserAgents
excludedUserAgents: "CSP-CheckerBot"
format: json
token_auth: "{{ matomo_token_value }}"
return_content: true
status_code: 200