network: Set netmask in correct format
This commit is contained in:
parent
f4b34de6c4
commit
e20873cbd3
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ interface-name={{ item.device }}
|
||||||
method=auto
|
method=auto
|
||||||
{% elif item.proto == 'static' %}
|
{% elif item.proto == 'static' %}
|
||||||
method=manual
|
method=manual
|
||||||
address1={{ item.ipaddr }}/{{ item.netmask }}
|
address1={{ item.ipaddr }}/{{ (item.ipaddr + '/' + item.netmask) | ansible.utils.ipaddr('prefix') }}
|
||||||
{% if item.gateway is defined %}
|
{% if item.gateway is defined %}
|
||||||
gateway={{ item.gateway }}
|
gateway={{ item.gateway }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue