Merge pull request #1396 from guits/fix_1374

BugFix: Fix #1374
pull/1120/merge
Sébastien Han 2017-03-27 18:13:51 +02:00 committed by GitHub
commit 6e3c0971a9
4 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
# serial: 1 would be the proper solution here, but that can only be set on play level
# upstream issue: https://github.com/ansible/ansible/issues/12170
run_once: true
with_items: "{{ groups[mds_group_name] }}"
with_items: "{{ groups.get(mds_group_name, []) }}"
delegate_to: "{{ item }}"
when:
- socket.rc == 0

View File

@ -6,7 +6,7 @@
# serial: 1 would be the proper solution here, but that can only be set on play level
# upstream issue: https://github.com/ansible/ansible/issues/12170
run_once: true
with_items: "{{ groups[mon_group_name] }}"
with_items: "{{ groups.get(mon_group_name, []) }}"
delegate_to: "{{ item }}"
when:
- socket.rc == 0

View File

@ -11,7 +11,7 @@
# serial: 1 would be the proper solution here, but that can only be set on play level
# upstream issue: https://github.com/ansible/ansible/issues/12170
run_once: true
with_items: "{{ groups[osd_group_name] }}"
with_items: "{{ groups.get(osd_group_name, []) }}"
delegate_to: "{{ item }}"
when:
- socket.rc == 0

View File

@ -6,7 +6,7 @@
# serial: 1 would be the proper solution here, but that can only be set on play level
# upstream issue: https://github.com/ansible/ansible/issues/12170
run_once: true
with_items: "{{ groups[rgw_group_name] }}"
with_items: "{{ groups.get(rgw_group_name, []) }}"
delegate_to: "{{ item }}"
when:
- socketrgw.rc == 0