mirror of https://github.com/ceph/ceph-ansible.git
dashboard: simplify config-key command
since stable-4.0 isn't to deploy ceph releases prior to nautilus, there's no need to add this complexity here. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/3991/head
parent
be4a565612
commit
4405f50c85
|
@ -5,16 +5,12 @@
|
||||||
when: containerized_deployment
|
when: containerized_deployment
|
||||||
|
|
||||||
- name: disable SSL for dashboard
|
- name: disable SSL for dashboard
|
||||||
shell: |
|
command: "{{ container_exec_cmd }} ceph config set mgr mgr/dashboard/ssl false"
|
||||||
{{ container_exec_cmd }} ceph config set mgr mgr/dashboard/ssl false || \
|
|
||||||
{{ container_exec_cmd }} ceph config-key set mgr/dashboard/ssl false
|
|
||||||
delegate_to: "{{ groups[mon_group_name][0] }}"
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
||||||
when: dashboard_protocol != "https"
|
when: dashboard_protocol == "http"
|
||||||
|
|
||||||
- name: enable SSL for dashboard
|
- name: enable SSL for dashboard
|
||||||
shell: |
|
command: "{{ container_exec_cmd }} ceph config set mgr mgr/dashboard/ssl true"
|
||||||
{{ container_exec_cmd }} ceph config set mgr mgr/dashboard/ssl true || \
|
|
||||||
{{ container_exec_cmd }} ceph config-key set mgr/dashboard/ssl true
|
|
||||||
delegate_to: "{{ groups[mon_group_name][0] }}"
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
||||||
when: dashboard_protocol == "https"
|
when: dashboard_protocol == "https"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue