From 34463b800fb5cc57c221e96321b68b038882bb26 Mon Sep 17 00:00:00 2001 From: cwivagg Date: Tue, 27 Dec 2022 15:02:38 -0500 Subject: [PATCH] Fix regex for lineinfile --- roles/matomo/tasks/install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/matomo/tasks/install.yml b/roles/matomo/tasks/install.yml index e58cac922..76e5010c7 100644 --- a/roles/matomo/tasks/install.yml +++ b/roles/matomo/tasks/install.yml @@ -214,8 +214,8 @@ - name: Don't Check for Trusted Host ansible.builtin.lineinfile: path: "{{ matomo_path }}/matomo/config/config.ini.php" - line: enable_trusted_host_check=0 - insertafter: "[General]" + line: "enable_trusted_host_check=0" + insertafter: "^\[General\]$" # RECORD Matomo AS INSTALLED