Merge "Fix mongodb cluster using wrong network interface"
This commit is contained in:
commit
379424240b
@ -6,7 +6,7 @@ printjson(rs.initiate(
|
|||||||
{% for host in groups["mongodb"] %}
|
{% for host in groups["mongodb"] %}
|
||||||
{
|
{
|
||||||
"_id" : {{ loop.index }},
|
"_id" : {{ loop.index }},
|
||||||
"host" : "{{ hostvars[host]['ansible_' + hostvars[host]['storage_interface']]['ipv4']['address'] }}:{{ mongodb_port }}"
|
"host" : "{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ mongodb_port }}"
|
||||||
}{% if not loop.last %},{% endif %}
|
}{% if not loop.last %},{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user