diff --git a/roles/ceph-facts/tasks/facts.yml b/roles/ceph-facts/tasks/facts.yml index f21aad864..9ef94eb8f 100644 --- a/roles/ceph-facts/tasks/facts.yml +++ b/roles/ceph-facts/tasks/facts.yml @@ -107,8 +107,7 @@ - name: generate cluster fsid shell: python -c 'import uuid; print(str(uuid.uuid4()))' register: cluster_uuid - delegate_to: localhost - become: false + delegate_to: "{{ groups[mon_group_name][0] }}" run_once: true - name: set_fact fsid