diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-09-05 23:56:28 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-09-05 23:56:28 +0200 |
commit | 0d20c36e23f2435edd3f4f362ae64963ca6bfb6a (patch) | |
tree | 12859d4d39220b117fdf3ddc7a5b5d4c3edc086f /roles/network/dhcp-server/tasks | |
parent | ubuntu/installer: add support for desktop installs (diff) |
replace some ipaddr() filter calls to new location (still a lot left todo...)
Diffstat (limited to 'roles/network/dhcp-server/tasks')
-rw-r--r-- | roles/network/dhcp-server/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/network/dhcp-server/tasks/main.yml b/roles/network/dhcp-server/tasks/main.yml index f8733029..90183d9c 100644 --- a/roles/network/dhcp-server/tasks/main.yml +++ b/roles/network/dhcp-server/tasks/main.yml @@ -17,8 +17,8 @@ marker: '### {mark} ansible network/dhcp-server subnets ###' block: | {% for interface,subnet in dhcp_server_interfaces.items() %} - subnet {{ subnet.prefix | ipaddr('network') }} netmask {{ subnet.prefix | ipaddr('netmask') }} { - range {{ subnet.prefix | ipaddr(subnet.start) | ipaddr('address') }} {{ subnet.prefix | ipaddr(subnet.limit) | ipaddr('address') }}; + subnet {{ subnet.prefix | ansible.utils.ipaddr('network') }} netmask {{ subnet.prefix | ansible.utils.ipaddr('netmask') }} { + range {{ subnet.prefix | ansible.utils.ipaddr(subnet.start) | ansible.utils.ipaddr('address') }} {{ subnet.prefix | ansible.utils.ipaddr(subnet.limit) | ansible.utils.ipaddr('address') }}; {% if 'gateway' in subnet %} option routers {{ subnet.gateway }}; {% endif %} |