Change how TLS is disabled, add custom origin
This commit is contained in:
parent
0afc95bb5f
commit
7918d779c2
|
@ -7,14 +7,21 @@
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ cockpit_packages }}"
|
loop: "{{ cockpit_packages }}"
|
||||||
|
|
||||||
- name: disable cockpit internal TLS
|
- name: disable cockpit selfsigned TLS
|
||||||
ini_file:
|
ini_file:
|
||||||
dest: "/usr/lib/systemd/system/cockpit.service"
|
dest: "/etc/cockpit/cockpit.conf"
|
||||||
section: "Service"
|
section: "WebService"
|
||||||
option: "ExecStart"
|
option: "AllowUnencrypted"
|
||||||
value: "/usr/libexec/cockpit-ws --no-tls"
|
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
|
register: systemd
|
||||||
when: cockpit_disable_tls
|
|
||||||
|
|
||||||
- name: change default listen port
|
- name: change default listen port
|
||||||
blockinfile:
|
blockinfile:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user