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 # Default error policy for printers
ErrorPolicy retry-job ErrorPolicy retry-job
# Only listen for connections from the local machine. # Allow remote access
Listen 0.0.0.0:631 Port 631
Listen /run/cups/cups.sock Listen /run/cups/cups.sock
# Show shared printers on the local network. # Show shared printers on the local network.
@ -33,9 +33,9 @@ IdleExitTimeout 60
# Restrict access to the server... # Restrict access to the server...
<Location /> <Location />
# Allow remote access...
Order allow,deny Order allow,deny
Allow localhost Allow all
Allow 192.168.50.*
</Location> </Location>
# Restrict access to the admin pages... # 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: install.yml
- import_tasks: config.yml