Change how TLS is disabled, add custom origin

master
blallo 2020-05-28 10:12:08 +02:00
parent 0afc95bb5f
commit 7918d779c2
1 changed files with 13 additions and 6 deletions

View File

@ -7,14 +7,21 @@
state: present
loop: "{{ cockpit_packages }}"
- name: disable cockpit internal TLS
- name: disable cockpit selfsigned TLS
ini_file:
dest: "/usr/lib/systemd/system/cockpit.service"
section: "Service"
option: "ExecStart"
value: "/usr/libexec/cockpit-ws --no-tls"
dest: "/etc/cockpit/cockpit.conf"
section: "WebService"
option: "AllowUnencrypted"
value: "true"
register: systemd
- name: add cockpit origin
ini_file:
dest: "/etc/cockpit/cockpit.conf"
section: "WebService"
option: "Origins"
value: "https://{{ ansible_hostname }}.cockpit.troubles.io"
register: systemd
when: cockpit_disable_tls
- name: change default listen port
blockinfile: