Compare commits
2 Commits
e9fe5072cf
...
30e0f8dc6c
| Author | SHA1 | Date | |
|---|---|---|---|
| 30e0f8dc6c | |||
| 20ade83682 |
@ -34,14 +34,26 @@
|
|||||||
path: /etc/cups/cupsd.conf
|
path: /etc/cups/cupsd.conf
|
||||||
regexp: '<Location \/>[^<]*<\/Location>'
|
regexp: '<Location \/>[^<]*<\/Location>'
|
||||||
replace: |
|
replace: |
|
||||||
<Location \/>
|
<Location />
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
Allow all
|
Allow all
|
||||||
<\/Location>
|
</Location>
|
||||||
register: cupsd_mod2
|
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:
|
- name:
|
||||||
service:
|
service:
|
||||||
name: cups
|
name: cups
|
||||||
state: restarted
|
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