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: