fuck you cups
This commit is contained in:
@ -29,31 +29,10 @@
|
|||||||
replace: 'Listen 0.0.0.0:631'
|
replace: 'Listen 0.0.0.0:631'
|
||||||
register: cupsd_mod1
|
register: cupsd_mod1
|
||||||
|
|
||||||
- name: allow access to the webinterface
|
- name: configure cups for remote access
|
||||||
replace:
|
shell: cupsctl --remote-admin --remote-any --share-printers
|
||||||
path: /etc/cups/cupsd.conf
|
|
||||||
regexp: '<Location \/>[^<]*<\/Location>'
|
|
||||||
replace: |
|
|
||||||
<Location />
|
|
||||||
Order allow,deny
|
|
||||||
Allow all
|
|
||||||
</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:
|
- name:
|
||||||
service:
|
service:
|
||||||
name: cups
|
name: cups
|
||||||
state: restarted
|
state: restarted
|
||||||
when: cupsd_mod1.changed or cupsd_mod2.changed or cupsd_mod3.changed
|
|
||||||
Reference in New Issue
Block a user