cups-server: Require SSL when connecting to CUPS
This commit is contained in:
parent
838efc0554
commit
bba8c8e446
1 changed files with 17 additions and 3 deletions
|
@ -27,11 +27,25 @@
|
||||||
line: "DefaultAuthType Negotiate"
|
line: "DefaultAuthType Negotiate"
|
||||||
notify: restart cups
|
notify: restart cups
|
||||||
|
|
||||||
- name: configure cups listen port
|
- name: disable cups plain text port
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/cups/cupsd.conf
|
path: /etc/cups/cupsd.conf
|
||||||
regexp: "^Listen (.*:)?631"
|
regexp: "^#?Listen (.*:)?631"
|
||||||
line: "Listen 631"
|
line: "#Listen 631"
|
||||||
|
notify: restart cups
|
||||||
|
|
||||||
|
- name: set ssl listen port
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/cups/cupsd.conf
|
||||||
|
line: "SSLListen 631"
|
||||||
|
insertafter: "Listen /var/run/cups/cups.sock"
|
||||||
|
notify: restart cups
|
||||||
|
|
||||||
|
- name: require tls 1.2
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/cups/cupsd.conf
|
||||||
|
line: "SSLOptions MinTLS1.3"
|
||||||
|
insertafter: "SSLListen 631"
|
||||||
notify: restart cups
|
notify: restart cups
|
||||||
|
|
||||||
- name: write all requests to cups access log
|
- name: write all requests to cups access log
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue