]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix the mons running check to use group name var 1168/head
authorLogan V <logan2211@gmail.com>
Thu, 8 Dec 2016 19:16:02 +0000 (13:16 -0600)
committerLogan V <logan2211@gmail.com>
Thu, 8 Dec 2016 19:16:02 +0000 (13:16 -0600)
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

index 902be2e9cecf09508c0c6619d200a8fab1f839f0..76ae7a9a47b4b21e50d046969e8921325fc333fe 100644 (file)
@@ -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 }}"