1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 20:22:08 +00:00

Harden Matomo install for timezone issue

Additionally, temporarily switch apache_user to www-data to unblock access to Matomo. Will debug later.
This commit is contained in:
cwivagg 2022-08-31 06:42:47 -04:00 committed by GitHub
parent de9e699571
commit 45525c5397
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,8 +39,8 @@
file:
path: "{{ matomo_path }}/matomo"
recurse: yes
owner: "{{ apache_user }}" # e.g. www-data
group: "{{ apache_user }}"
owner: www-data
group: www-data
- name: HTTP Get Welcome
uri:
@ -139,8 +139,22 @@
url: "{{ matomo_host_url }}"
ecommerce: 0
body_format: form-urlencoded
register: _result
- name: Fallback Configure Matomo to track IIAB
uri:
url: "{{ matomo_full_url }}index.php?action=firstWebsiteSetup&module=Installation"
method: POST
headers:
Cookie: "{{ matomo_session_cookie }}"
body:
siteName: "IIAB"
url: "{{ matomo_host_url }}"
timezone: "Europe/London"
ecommerce: 0
body_format: form-urlencoded
status_code: 302
#register: matomo_first_website_setup
when: _result.status == 200
- name: Matomo Tracking Code
uri: