Skip to content
Snippets Groups Projects
Commit b8e9b67f authored by Jupiter Hu's avatar Jupiter Hu
Browse files

Fixed export template file

parent 266e0dde
No related branches found
No related tags found
No related merge requests found
{% set iplist = [] %} {% for export in exportList %}
{% for group in groupList %} {{ export.src }} {% for group in groupList %}{% for node in groups[group.name] %}{{ hostvars[node]['ansible_'+group.interface]['ipv4']['address'] }}({{ export.srvopts }}) {% endfor %}{% endfor %}
{% for node in groups[group.name] %}
{% if hostvars[node]['ansible_'+group.interface] is defined %}
{% if iplist.append(hostvars[node]['ansible_'+group.interface]['ipv4']['address']) %}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %} {% endfor %}
{{ export.src }} {% for ip in iplist|unique %}{{ ip }}{{ export.srvopts }} {% 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