From fdf384f6e2097849593f835ca8e39c9e81235584 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Sat, 2 Oct 2021 15:16:32 +0200
Subject: [PATCH] Use lineinfile only, if regex lines are matching anything

---
 tasks/php.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tasks/php.yml b/tasks/php.yml
index a5abd04..7d0cb8c 100644
--- a/tasks/php.yml
+++ b/tasks/php.yml
@@ -178,6 +178,7 @@
         dest: /etc/apache2/sites-available/{{ apache_conf_default_prefix }}default{{ apache_conf_ext }}
         regexp: '{{ item.regexp }}'
         line: '{{ item.line }}'
+        backrefs: yes
       with_items:
         - regexp: 'ProxyPassMatch'
           line: '  ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:{{ php_fpm_port|default(9999) }}/var/www{{apache_server_default_root}}/$1'
-- 
GitLab