We cannot use the old fashioned config-key way, here. It was not
supported when the option was introduced (post 14.2.0). Since the option
is not always supported we can simply ignore the potential failure on
ceph clusters that do not support it.
Signed-off-by: Boris Ranto <branto@redhat.com>
{{ mgr_prefix }} ceph config set mgr mgr/dashboard/server_port {{ dashboard_port }} || \
{{ mgr_prefix }} ceph config-key set mgr/dashboard/server_port {{ dashboard_port }}
+- name: "set the dashboard SSL port ({{ dashboard_port }})"
+ command: "{{ mgr_prefix }} ceph config set mgr mgr/dashboard/ssl_server_port {{ dashboard_port }}" # Do not use the old fashioned config-key way ssl_server_port, it was not supported when this option was introduced
+ failed_when: false # Do not fail if the option does not exist, it only exists post-14.2.0
+
- name: disable mgr dashboard module (restart)
command: "{{ mgr_prefix }} ceph mgr module disable dashboard"
changed_when: false