cupsd config for srv-print
This commit is contained in:
@ -20,4 +20,17 @@
|
||||
- cups
|
||||
- printer-driver-splix
|
||||
state: present
|
||||
update_cache: yes
|
||||
update_cache: yes
|
||||
|
||||
- name: allow access to cups from network
|
||||
replace:
|
||||
path: /etc/cups/cupsd.conf
|
||||
regexp: 'Listen localhost:631'
|
||||
replace: 'Listen 0.0.0.0:631'
|
||||
register: cupsd_replace
|
||||
|
||||
- name:
|
||||
service:
|
||||
name: cups
|
||||
state: restarted
|
||||
when: cupsd_replace.changed
|
||||
Reference in New Issue
Block a user