1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Fix some bugs in paths/URLs

This commit is contained in:
Carl Wivagg 2022-05-04 06:25:16 -04:00
parent 45e1fd2c0e
commit bd989dbbe2
2 changed files with 5 additions and 6 deletions

View file

@ -21,12 +21,11 @@
- name: Download and Extract Matomo - name: Download and Extract Matomo
unarchive: unarchive:
src: https://builds.matomo.org/matomo.zip src: https://builds.matomo.org/matomo.zip
dest: /var/www/html dest: "{{ nginx_loc }}"
remote_src: yes remote_src: yes
creates: "{{ matomo_nginx_loc }}"
- name: Set Matomo Directory Permissions - name: Set Matomo Directory Permissions
file: file:
path: "{{ matomo_nginx_loc }}" path: "{{ nginx_loc }}/matomo"
recurse: yes recurse: yes
owner: www-data owner: www-data
group: www-data group: www-data
@ -97,7 +96,7 @@
Cookie: "{{ matomo_session_cookie }}" Cookie: "{{ matomo_session_cookie }}"
body: body:
name: "IIAB" name: "IIAB"
url: "host_url" url: "{{ host_url }}"
timezone: "Europe/London" timezone: "Europe/London"
ecommerce: 0 ecommerce: 0
body_format: form-urlencoded body_format: form-urlencoded
@ -105,7 +104,7 @@
register: matomo_first_website_setup register: matomo_first_website_setup
- name: Matomo Tracking Code - name: Matomo Tracking Code
uri: uri:
url: "{{ matomo_url }}index.php?action=trackingCode&module=Installation&site_idSite=1&site_name=http://10.0.0.72" url: "{{ matomo_url }}index.php?action=trackingCode&module=Installation&site_idSite=1&site_name={{ host_url }}"
method: GET method: GET
headers: headers:
Cookie: "{{ matomo_session_cookie }}" Cookie: "{{ matomo_session_cookie }}"

View file

@ -2,7 +2,7 @@
include_tasks: install.yml include_tasks: install.yml
when: matomo_installed is undefined when: matomo_installed is undefined
vars: vars:
matomo_nginx_loc: "/library/www/html/matomo" nginx_loc: "/library/www/html"
mdb_dbname: "matomodb" mdb_dbname: "matomodb"
mdb_username: "iiab-admin" mdb_username: "iiab-admin"
mdb_password: "g0adm1n" mdb_password: "g0adm1n"