Update cups
This commit is contained in:
parent
8354afb237
commit
95ef8d2f66
@ -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...
|
||||||
|
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: install.yml
|
||||||
|
|
||||||
|
- import_tasks: config.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user