cupsd config for srv-print

This commit is contained in:
krumel
2022-02-26 22:45:19 +01:00
parent 3f251ce158
commit 52a68730e3
2 changed files with 16 additions and 3 deletions

View File

@ -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

View File

@ -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