diff --git a/defaults/main.yml b/defaults/main.yml index 43920f6..e624af4 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,7 +1,9 @@ # Install location + +matomo_host: localhost webserver_document_root: /var/www/html matomo_install_dir: /var/www/html/matomo -matomo_base_url: http://localhost:8080/matomo +matomo_base_url: "http://{{ matomo_host }}:8080/matomo" # Install options console_install: true diff --git a/templates/config.ini.php.j2 b/templates/config.ini.php.j2 index 72d4952..782550b 100644 --- a/templates/config.ini.php.j2 +++ b/templates/config.ini.php.j2 @@ -1,16 +1,16 @@ ; DO NOT REMOVE THIS LINE ; file automatically generated or modified by Matomo; you can manually override the default values in global.ini.php by redefining them in this file. [database] -host = "127.0.0.1" -username = "matomo" -password = "islandora" -dbname = "matomo" +host = {{ matomo_host }} +username = {{ matomo_db_user }} +password = {{ matomo_db_password }} +dbname = {{ matomo_db_name }} tables_prefix = "matomo_" [General] salt = "bc32ffdbba9cb51a7886fd3f5d8e2ff6" trusted_hosts[] = "localhost" -trusted_hosts[] = "{{ ansible_ssh_host }}:8000" +trusted_hosts[] = "{{ matomo_host }}:8000" [PluginsInstalled] PluginsInstalled[] = "Diagnostics"