Add dashboard_protocol variable when internal_tls is enabled

When the Ceph dashboard is deployed using tls everywhere, ceph-ansible
requires the dashboard_protocol variable set to 'https' to avoid the
cert/key related tasks getting skipped.
This change just adds the required variable, setting its value to 'https'
when the condition is met.

Closes-Bug: 1888982
Change-Id: Ice0ca431fe45fb20e1398dc9581bdffbd1a88f4f
This commit is contained in:
Francesco Pantano 2020-07-25 14:53:00 +02:00
parent e59009a7e1
commit 7ff794663b
No known key found for this signature in database
GPG Key ID: 799868C47301D458

View File

@ -126,6 +126,7 @@ outputs:
- {get_attr: [CephMgrAnsibleVars, value, vars]}
- dashboard_crt: /etc/pki/tls/certs/ceph_dashboard.crt
- dashboard_key: /etc/pki/tls/private/ceph_dashboard.key
- dashboard_protocol: 'https'
- {get_attr: [CephMgrAnsibleVars, value, vars]}
- name: generate ceph-ansible group vars mgrs
copy: