aboutsummaryrefslogtreecommitdiff
path: root/ansible/plays
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/plays')
-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 %}