mirror of https://github.com/ceph/ceph-ansible.git
Revert "Make 'disable ssl for dashboard task' idempotent."
This reverts commitpull/5778/head v4.0.32f607857f2a
. > That commit [1] introduced a regression in the dashboard configuration > because the ceph config get mgr xxxx command doesn't work with > nautilus. > In that release the get operation needs an entity. > [1]f607857
Signed-off-by: Dimitri Savineau dsavinea@redhat.com
parent
44e3195ded
commit
edb7bdd911
|
@ -5,19 +5,10 @@
|
|||
when: containerized_deployment | bool
|
||||
|
||||
- name: disable SSL for dashboard
|
||||
when: dashboard_protocol == "http"
|
||||
delegate_to: "{{ groups[mon_group_name][0] }}"
|
||||
block:
|
||||
- name: get SSL status for dashboard
|
||||
run_once: true
|
||||
command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} config get mgr mgr/dashboard/ssl"
|
||||
changed_when: false
|
||||
register: current_ssl_for_dashboard
|
||||
|
||||
- name: disable SSL for dashboard
|
||||
run_once: true
|
||||
command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} config set mgr mgr/dashboard/ssl false"
|
||||
when: current_ssl_for_dashboard.stdout == "true"
|
||||
delegate_to: "{{ groups[mon_group_name][0] }}"
|
||||
run_once: true
|
||||
when: dashboard_protocol == "http"
|
||||
|
||||
- name: with SSL for dashboard
|
||||
when: dashboard_protocol == "https"
|
||||
|
|
Loading…
Reference in New Issue