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

Fixed syncExport

parent d324a511
No related branches found
No related tags found
No related merge requests found
{% for export in exportList %} {% for export in exportList %}
{% set iplist = [] %} {% set iplist = [] %}
{% for node in groups[export.group] %} {% for group in export.group %}
{% for node in groups[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 %} {% 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