The ceph.conf template needs to look for the value of monitor_interface
in hostvars[host] because there might be different values set per host.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
{%- endif %}
{%- else -%}
{% if ip_version == 'ipv4' -%}
- {{ hostvars[host]['ansible_' + monitor_interface][ip_version]['address'] }}
+ {{ hostvars[host]['ansible_' + hostvars[host]['monitor_interface']][ip_version]['address'] }}
{%- elif ip_version == 'ipv6' -%}
- [{{ hostvars[host]['ansible_' + monitor_interface][ip_version][0]['address'] }}]
+ [{{ hostvars[host]['ansible_' + hostvars[host]['monitor_interface']][ip_version][0]['address'] }}]
{%- endif %}
{%- endif %}
{% if not loop.last -%},{%- endif %}