Update cups
This commit is contained in:
parent
8354afb237
commit
95ef8d2f66
@ -14,8 +14,8 @@ MaxLogSize 0
|
||||
# Default error policy for printers
|
||||
ErrorPolicy retry-job
|
||||
|
||||
# Only listen for connections from the local machine.
|
||||
Listen 0.0.0.0:631
|
||||
# Allow remote access
|
||||
Port 631
|
||||
Listen /run/cups/cups.sock
|
||||
|
||||
# Show shared printers on the local network.
|
||||
@ -33,9 +33,9 @@ IdleExitTimeout 60
|
||||
|
||||
# Restrict access to the server...
|
||||
<Location />
|
||||
# Allow remote access...
|
||||
Order allow,deny
|
||||
Allow localhost
|
||||
Allow 192.168.50.*
|
||||
Allow all
|
||||
</Location>
|
||||
|
||||
# Restrict access to the admin pages...
|
||||
|
12
roles/cups-server/tasks/config.yml
Normal file
12
roles/cups-server/tasks/config.yml
Normal file
@ -0,0 +1,12 @@
|
||||
- name: copy mysql backup
|
||||
become: yes
|
||||
copy:
|
||||
src: "cupsd.conf"
|
||||
dest: "/etc/cups/cupsd.conf"
|
||||
owner: root
|
||||
mode: '0600'
|
||||
|
||||
- name: restart cups
|
||||
systemd:
|
||||
name: cups
|
||||
state: restarted
|
@ -1,2 +1,4 @@
|
||||
---
|
||||
- import_tasks: install.yml
|
||||
|
||||
- import_tasks: config.yml
|
||||
|
Loading…
Reference in New Issue
Block a user