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

Merge pull request #75 from l1ll1/master

fix up exports template based on things I did last week.
parents 7af51b7f 01986778
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