Skip to content

Commit

Permalink
Fix the mons running check to use group name var
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
logan2211 committed Dec 8, 2016
1 parent 7b0602c commit 034fc1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/ceph-common/tasks/facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 034fc1a

Please sign in to comment.