Skip to content
Snippets Groups Projects
Commit 35455306 authored by Shahaan Ayyub's avatar Shahaan Ayyub
Browse files

Removed support for multiple interfaces for a group_name

parent b36d3124
No related branches found
No related tags found
No related merge requests found
{% for export in exportList %}
{{ export.src }} {% for group in groupList %}{% for node in groups[group.name] %}{% for interface_name in group.interfaces %}{{ hostvars[node]['ansible_'+interface_name]['ipv4']['address'] }}(rw,sync,root_squash) {% endfor %}{% endfor %}{% endfor %}
{{ export.src }} {% for group in groupList %}{% for node in groups[group.name] %}{{ hostvars[node]['ansible_'+group.interface]['ipv4']['address'] }}(rw,sync,root_squash) {% endfor %}{% endfor %}
{% endfor %}
---
groupList:
- { name : 'openvpn-clients', interfaces : ['tun0'] }
- { name : 'openvpn-clients', interface : 'tun0' }
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