Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% if salt['network.interfaces']()['br-eth1']['inet'][0]['address'] is not defined %}
- my_ip: {{ salt['network.interfaces']()['eth1']['inet'][0]['address'] }}
- {% else %}
- my_ip: {{ salt['network.interfaces']()['br-eth1']['inet'][0]['address'] }}
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement