From c7a226261fd44cf335be0971bb6d8ef5193b6fb7 Mon Sep 17 00:00:00 2001 From: krumel Date: Sat, 26 Feb 2022 23:09:20 +0100 Subject: [PATCH] . --- playbooks/srv-print.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/playbooks/srv-print.yml b/playbooks/srv-print.yml index 8a91717..24717b5 100644 --- a/playbooks/srv-print.yml +++ b/playbooks/srv-print.yml @@ -30,13 +30,14 @@ register: cupsd_mod1 - name: allow access to the webinterface - blockinfile: + replace: path: /etc/cups/cupsd.conf - insertafter: '' - insertbefore: '<\/Location>' - block: | - Order allow,deny - Allow all + regexp: '[.\n]*<\/Location>' + replace: | + + Order allow,deny + Allow all + <\/Location> register: cupsd_mod2 - name: