From a496da62b079209ac83530ff50b8644bbb9433e4 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Fri, 14 Jun 2019 11:09:23 +0300 Subject: [PATCH] add more cups configuration --- roles/cups/server/tasks/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/roles/cups/server/tasks/main.yml b/roles/cups/server/tasks/main.yml index bd1bcbe..19cc9ed 100644 --- a/roles/cups/server/tasks/main.yml +++ b/roles/cups/server/tasks/main.yml @@ -35,6 +35,29 @@ line: "DefaultAuthType Negotiate" notify: restart cups +- name: disable printer advertising + lineinfile: + path: /etc/cups/cupsd.conf + regexp: "^Browsing .*" + line: "Browsing No" + notify: restart cups + +- name: disable unauthenticated access from cups + blockinfile: + path: /etc/cups/cupsd.conf + insertafter: "^" + block: | + AuthType Default + Require user @foosh + notify: restart cups + +- name: configure cups admin group + lineinfile: + path: /etc/cups/cups-files.conf + regexp: "^SystemGroup .*" + line: "SystemGroup root sysadm" + notify: restart cups + - name: disable cups socket service systemd: name: cups.socket