1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +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
unarchive:
src: https://builds.matomo.org/matomo.zip
dest: /var/www/html
dest: "{{ nginx_loc }}"
remote_src: yes
creates: "{{ matomo_nginx_loc }}"
- name: Set Matomo Directory Permissions
file:
path: "{{ matomo_nginx_loc }}"
path: "{{ nginx_loc }}/matomo"
recurse: yes
owner: www-data
group: www-data
@ -97,7 +96,7 @@
Cookie: "{{ matomo_session_cookie }}"
body:
name: "IIAB"
url: "host_url"
url: "{{ host_url }}"
timezone: "Europe/London"
ecommerce: 0
body_format: form-urlencoded
@ -105,7 +104,7 @@
register: matomo_first_website_setup
- name: Matomo Tracking Code
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
headers:
Cookie: "{{ matomo_session_cookie }}"

View file

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