From ff572ab1293fa45bfcb634bb02c148cb990d8ee7 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 2 Nov 2024 19:35:23 +0100 Subject: Fixing deprecation. --- ansible/plays/ipam-generate-tf.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ansible') diff --git a/ansible/plays/ipam-generate-tf.yml b/ansible/plays/ipam-generate-tf.yml index e43a559..209b8ab 100644 --- a/ansible/plays/ipam-generate-tf.yml +++ b/ansible/plays/ipam-generate-tf.yml @@ -20,14 +20,14 @@ description = "{{ network.description }}" {% endif %} range = "{{ network.range }}" - address = "{{ network.range|ipaddr("network") }}" - prefix = "{{ network.range|ipaddr("prefix") }}" + address = "{{ network.range|ansible.utils.ipaddr("network") }}" + prefix = "{{ network.range|ansible.utils.ipaddr("prefix") }}" {% set hosts = network.hosts|default({}) %} hosts = { {% for name, addr in hosts.items() %} {{ name }} = { - address: "{{ addr|ipaddr("address") }}" - prefix: "{{ addr|ipaddr("prefix") }}" + address: "{{ addr|ansible.utils.ipaddr("address") }}" + prefix: "{{ addr|ansible.utils.ipaddr("prefix") }}" } {% endfor %} } @@ -42,8 +42,8 @@ {% set hosts = network.hosts|default({}) %} {% for name, addr in hosts.items() %} {{ name }} = { - address: "{{ addr|ipaddr("address") }}" - prefix: "{{ addr|ipaddr("prefix") }}" + address: "{{ addr|ansible.utils.ipaddr("address") }}" + prefix: "{{ addr|ansible.utils.ipaddr("prefix") }}" } {% endfor %} {% endfor %} -- cgit v1.2.3