Moving the mds_name fact in the common role so the MDS can properly
be restarted.
Signed-off-by: Sébastien Han <seb@redhat.com>
## MDS options
#
#mds_use_fqdn: false # if set to true, the MDS name used will be the fqdn in the ceph.conf
+#mds_name: "{{ ansible_hostname }}"
## Rados Gateway options
#
# by ceph.conf.j2 template. so it should always be defined
#mon_containerized_deployment_with_kv: false
+
#pypy_binary_directory: /opt/bin
#pip_url: https://bootstrap.pypa.io/get-pip.py
#local_temp_directory: /tmp
-
- set_fact:
is_kraken={{ ceph_version | version_compare('11.0.0', '>=') and ceph_version | version_compare('12.0.0', '<') }}
+
+- set_fact:
+ mds_name: "{{ ansible_hostname }}"
+ when: not mds_use_fqdn
+
+- set_fact:
+ mds_name: "{{ ansible_fqdn }}"
+ when: mds_use_fqdn
+
---
-- set_fact:
- mds_name: "{{ ansible_hostname }}"
- when: not mds_use_fqdn
-
-- set_fact:
- mds_name: "{{ ansible_fqdn }}"
- when: mds_use_fqdn
-
- name: create bootstrap-mds directory
file:
path: /var/lib/ceph/bootstrap-mds/