aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2024-11-02 19:35:23 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2024-11-02 19:35:23 +0100
commitff572ab1293fa45bfcb634bb02c148cb990d8ee7 (patch)
tree66c5982bc60892e40a6694f830e972b6d0aff0f5
parent88b018c4fef3ca2978d760960c6e90fb6d96686b (diff)
downloadinfra-ff572ab1293fa45bfcb634bb02c148cb990d8ee7.tar.gz
infra-ff572ab1293fa45bfcb634bb02c148cb990d8ee7.tar.bz2
infra-ff572ab1293fa45bfcb634bb02c148cb990d8ee7.tar.xz
infra-ff572ab1293fa45bfcb634bb02c148cb990d8ee7.zip
Fixing deprecation.
-rw-r--r--ansible/plays/ipam-generate-tf.yml12
1 files changed, 6 insertions, 6 deletions
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 %}