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