add more cups configuration
This commit is contained in:
parent
5afff575c5
commit
a496da62b0
1 changed files with 23 additions and 0 deletions
|
@ -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: "^<Location />"
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue