Skip to content
Snippets Groups Projects
Commit d5b82862 authored by Chris Hines's avatar Chris Hines
Browse files

fix up exports template that wasn't working

parent 642414a4
No related branches found
No related tags found
No related merge requests found
{% set iplist = [] %}
{% for export in exportList %} {% for export in exportList %}
{% set iplist = [] %}
{% for node in groups[export.group] %} {% for node in groups[export.group] %}
{% if hostvars[node]['ansible_'+export.interface] is defined %} {% if hostvars[node]['ansible_'+export.interface] is defined %}
{% if iplist.append(hostvars[node]['ansible_'+export.interface]['ipv4']['address']) %} {% if iplist.append(hostvars[node]['ansible_'+export.interface]['ipv4']['address']) %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{{ export.src }} {% for ip in iplist|unique %}{{ ip }}({{ export.srvopts }}) {% endfor %} {{ export.src }} {% for ip in iplist|unique %}{{ ip }}({{ export.srvopts }})
{% endfor %}
{% endfor %} {% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment