From 034fc1a7919fc4f49363ace0926d3dc7e80bb173 Mon Sep 17 00:00:00 2001 From: Logan V Date: Thu, 8 Dec 2016 13:16:02 -0600 Subject: [PATCH] Fix the mons running check to use group name var mon_group_name variable can be used to override mons group, but this task assumes the group is always 'mons'. So we need to use the var to find the group name instead. --- roles/ceph-common/tasks/facts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-common/tasks/facts.yml b/roles/ceph-common/tasks/facts.yml index 902be2e9c..76ae7a9a4 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 }}"