mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-09 02:45:17 +00:00
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
# Required to be set on the top to prevent infinite recursions appearing in roles/sys-front-inj-all/tasks/01_dependencies.yml
|
|
- include_tasks: utils/once/flag.yml
|
|
|
|
- name: "load docker, db and proxy for {{ application_id }}"
|
|
include_role:
|
|
name: sys-stk-full-stateful
|
|
vars:
|
|
docker_compose_flush_handlers: false
|
|
|
|
- name: "Patch Matomo config.ini.php"
|
|
include_tasks: 02_configuration.yml
|
|
|
|
- name: flush docker service
|
|
meta: flush_handlers
|
|
|
|
# Wait for API
|
|
- name: Exclude global IPs in Matomo
|
|
uri:
|
|
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_auth_token }}"
|
|
return_content: yes
|
|
status_code: 200
|
|
register: matomo_exclude
|
|
until: matomo_exclude.status == 200
|
|
retries: 5
|
|
delay: 10
|
|
|
|
- name: Exclude CSP-CheckerBot user agent in Matomo
|
|
uri:
|
|
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_auth_token }}"
|
|
return_content: yes
|
|
status_code: 200
|