configure admin acces for printserver
This commit is contained in:
@ -40,8 +40,20 @@
|
||||
</Location>
|
||||
register: cupsd_mod2
|
||||
|
||||
- name: configure admin acces for the webinterface
|
||||
replace:
|
||||
path: /etc/cups/cupsd.conf
|
||||
regexp: '<Location \/admin>[^<]*<\/Location>'
|
||||
replace: |
|
||||
<Location /admin>
|
||||
AuthType Default
|
||||
Require user @SYSTEM
|
||||
Order allow,deny
|
||||
</Location>
|
||||
register: cupsd_mod3
|
||||
|
||||
- name:
|
||||
service:
|
||||
name: cups
|
||||
state: restarted
|
||||
when: cupsd_mod1.changed or cupsd_mod2.changed
|
||||
when: cupsd_mod1.changed or cupsd_mod2.changed or cupsd_mod3.changed
|
||||
Reference in New Issue
Block a user