1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/matomo/tasks/main.yml
2022-05-04 06:25:16 -04:00

11 lines
565 B
YAML

- name: Install Matomo main
include_tasks: install.yml
when: matomo_installed is undefined
vars:
nginx_loc: "/library/www/html"
mdb_dbname: "matomodb"
mdb_username: "iiab-admin"
mdb_password: "g0adm1n"
host_url: "http://{{ ansible_default_ipv4.address}}"
matomo_url: "{{ host_url }}/matomo/"
matomo_cronjob: "sudo python3 /library/www/html/matomo/misc/log-analytics/import_logs.py --url={{ matomo_url }} --idsite=1 --recorders=4 --enable-http-errors --enable-http-redirects --enable-static --enable-bots /var/log/nginx/access.log"