cups-server: Require SSL when connecting to CUPS

This commit is contained in:
Timo Makinen 2021-09-02 22:19:12 +00:00
parent 838efc0554
commit bba8c8e446

View file

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