ceph-ansible/roles/ceph-common/templates/mon_addr_interface.j2

3 lines
178 B
Django/Jinja

mon addr = {{ hostvars[host]['ansible_' + (hostvars[host]['monitor_interface'] if hostvars[host]['monitor_interface'] is defined else monitor_interface) ]['ipv4']['address'] }}