diff --git a/roles/matomo/tasks/install.yml b/roles/matomo/tasks/install.yml index 0ad386d86..49dc98dc7 100644 --- a/roles/matomo/tasks/install.yml +++ b/roles/matomo/tasks/install.yml @@ -212,10 +212,11 @@ group: "{{ apache_user }}" - name: Don't Check for Trusted Host - ansible.builtin.lineinfile: + ini_file: path: "{{ matomo_path }}/matomo/config/config.ini.php" - line: "enable_trusted_host_check\=0" - insertafter: "^\[General\]$" + section: General + option: enable_trusted_host_check + value: 0 # RECORD Matomo AS INSTALLED