cupsd config for srv-print
This commit is contained in:
@ -2,11 +2,11 @@
|
||||
|
||||
all:
|
||||
children:
|
||||
single-hosts:
|
||||
singlehosts:
|
||||
rpi:
|
||||
|
||||
# Hosts without special groups
|
||||
single-hosts:
|
||||
singlehosts:
|
||||
hosts:
|
||||
srv-print:
|
||||
ansible_host: 192.168.2.95
|
||||
|
||||
@ -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