Skip to content

Commit b264ee3

Browse files
committed
do not limit members when -l option is used
1 parent f96ea7b commit b264ee3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

roles/mongo/tasks/cluster.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
'priority': member_weight[hostvars[item].mongo_replication_role]
2222
}]
2323
}}
24-
loop: "{{ ansible_play_hosts }}"
24+
loop: "{{ ansible_play_hosts_all }}"
2525
run_once: true
2626
vars:
2727
member_weight:
@@ -35,7 +35,7 @@
3535

3636
- name: Debug ansible_play_hosts
3737
ansible.builtin.debug:
38-
msg: "{{ ansible_play_hosts }}"
38+
msg: "{{ ansible_play_hosts_all }}"
3939

4040
- name: Set fact for arbiter index number
4141
ansible.builtin.set_fact:

0 commit comments

Comments
 (0)