Update cups

This commit is contained in:
Przemek Grondek 2024-08-10 02:07:49 +02:00
parent 8354afb237
commit 95ef8d2f66
3 changed files with 18 additions and 4 deletions

View File

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

View 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

View File

@ -1,2 +1,4 @@
---
- import_tasks: install.yml
- import_tasks: config.yml