New ansible support (again)
This commit is contained in:
parent
3ff4ed5a77
commit
518c3bc7b8
12 changed files with 33 additions and 33 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{% set my_server = item.0 %}
|
||||
{% set my_vlans = item.1 | map(attribute='vlan.vid') | sort %}
|
||||
{% set my_prefix = prefixes | selectattr("prefix", "==", my_server | ipaddr("network/prefix")) | first -%}
|
||||
{% set my_prefix = prefixes | selectattr("prefix", "==", my_server | ansible.utils.ipaddr("network/prefix")) | first -%}
|
||||
|
||||
SERVERS="{{ my_server | ipaddr('address') }}"
|
||||
SERVERS="{{ my_server | ansible.utils.ipaddr('address') }}"
|
||||
INTF_CMD="{{ my_vlans | map('regex_replace', '^', '-id bridge.') | join(' ') }} -U bridge.{{ my_prefix.vlan.vid }}"
|
||||
OPTIONS=""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue