diff --git a/roles/ceph-common/tasks/facts.yml b/roles/ceph-common/tasks/facts.yml index 902be2e9ce..76ae7a9a47 100644 --- a/roles/ceph-common/tasks/facts.yml +++ b/roles/ceph-common/tasks/facts.yml @@ -11,7 +11,7 @@ failed_when: false always_run: yes register: ceph_current_fsid - delegate_to: "{{ groups.mons[0] }}" + delegate_to: "{{ groups[mon_group_name][0] }}" - set_fact: fsid: "{{ ceph_current_fsid.stdout }}"