From 30e0f8dc6ca95f3a6bd5ed77209ae09eeed57cf4 Mon Sep 17 00:00:00 2001 From: krumel Date: Sat, 26 Feb 2022 23:18:46 +0100 Subject: [PATCH] configure admin acces for printserver --- playbooks/srv-print.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/playbooks/srv-print.yml b/playbooks/srv-print.yml index cb6e6a9..3307443 100644 --- a/playbooks/srv-print.yml +++ b/playbooks/srv-print.yml @@ -40,8 +40,20 @@ register: cupsd_mod2 + - name: configure admin acces for the webinterface + replace: + path: /etc/cups/cupsd.conf + regexp: '[^<]*<\/Location>' + replace: | + + AuthType Default + Require user @SYSTEM + Order allow,deny + + register: cupsd_mod3 + - name: service: name: cups state: restarted - when: cupsd_mod1.changed or cupsd_mod2.changed \ No newline at end of file + when: cupsd_mod1.changed or cupsd_mod2.changed or cupsd_mod3.changed \ No newline at end of file