diff --git a/roles/mds/tasks/main.yml b/roles/mds/tasks/main.yml index e3fd270aa..0849ebec3 100644 --- a/roles/mds/tasks/main.yml +++ b/roles/mds/tasks/main.yml @@ -3,7 +3,7 @@ # - name: Copy MDS bootstrap key - copy: src=fetch/{{ hostvars[groups['mons'][0]]['ansible_hostname'] }}/var/lib/ceph/bootstrap-mds/ceph.keyring dest=/var/lib/ceph/bootstrap-mds/ceph.keyring owner=root group=root mode=600 + copy: src=fetch/{{ hostvars[groups['mons'][0]]['ansible_fqdn'] }}/var/lib/ceph/bootstrap-mds/ceph.keyring dest=/var/lib/ceph/bootstrap-mds/ceph.keyring owner=root group=root mode=600 when: cephx - name: Create MDS directory