mirror of https://github.com/ceph/ceph-ansible.git
parent
25d8ce958f
commit
3e06e39550
|
@ -35,7 +35,7 @@ mon host = {% for host in groups[mon_group_name] %}
|
|||
{% set address = hostvars[host]['monitor_address'] if hostvars[host]['monitor_address'] is defined else monitor_address %}
|
||||
{% set interface = hostvars[host]['monitor_interface'] if hostvars[host]['monitor_interface'] is defined else monitor_interface %}
|
||||
{% if interface != "interface" %}
|
||||
{% for key in hostvars[host].iterkeys() %}
|
||||
{% for key in hostvars[host].keys() %}
|
||||
{% if hostvars[host][key]['macaddress'] is defined and hostvars[host][key]['device'] is defined and hostvars[host][key]['device'] == interface -%}
|
||||
{{ hostvars[host][key]['ipv4']['address'] }}
|
||||
{%- endif %}
|
||||
|
|
Loading…
Reference in New Issue