mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
- Removed obsolete 'cmp' category, introduced 'stk' category (fa-bars-staggered icon). - Renamed roles: * cmp-db-docker → sys-stk-back-stateful * cmp-docker-oauth2 → sys-stk-back-stateless * srv-domain-provision → sys-stk-front * cmp-db-docker-proxy → sys-stk-full-stateful * cmp-docker-proxy → sys-stk-full-stateless * cmp-rdbms → sys-svc-rdbms - Updated all include_role references, vars, templates and README.md files. - Adjusted run_once comments and variable paths accordingly. - Updated all web-app roles to use new sys-stk/* and sys-svc/* roles. Conversation: https://chatgpt.com/share/68b0ba66-09f8-800f-86fc-76c47009d431
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
- name: "load docker, db and proxy for {{ application_id }}"
|
|
include_role:
|
|
name: sys-stk-full-stateful
|
|
|
|
- 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
|