summaryrefslogtreecommitdiff
path: root/roles/network/dhcp-server/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-09-05 23:56:28 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-09-05 23:56:28 +0200
commit0d20c36e23f2435edd3f4f362ae64963ca6bfb6a (patch)
tree12859d4d39220b117fdf3ddc7a5b5d4c3edc086f /roles/network/dhcp-server/tasks/main.yml
parentubuntu/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/main.yml')
-rw-r--r--roles/network/dhcp-server/tasks/main.yml4
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 %}