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:
parent
de9e699571
commit
45525c5397
1 changed files with 17 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue