From ae3074789a9eb7114f00d0920484cabb587cbf76 Mon Sep 17 00:00:00 2001 From: Crest Date: Wed, 2 Oct 2024 15:17:26 +0200 Subject: [PATCH] Invoke ipmath by its full name. Closes #33. --- roles/bhyve-network/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/bhyve-network/tasks/main.yml b/roles/bhyve-network/tasks/main.yml index c3d77fd..794dd83 100644 --- a/roles/bhyve-network/tasks/main.yml +++ b/roles/bhyve-network/tasks/main.yml @@ -10,13 +10,13 @@ - name: Set host IPv4 addresses sysrc: name: 'ifconfig_vmnet{{ item.index }}' - value: 'inet {{ bhyve_ipv4 | ipmath(2 * item.index)}}/31' + value: 'inet {{ bhyve_ipv4 | ansible.utils.ipmath(2 * item.index)}}/31' with_items: '{{ bhyve_guests }}' - name: Set host IPv6 addresses sysrc: name: 'ifconfig_vmnet{{ item.index }}_ipv6' - value: 'inet6 {{ bhyve_ipv6 | ipmath(2 * item.index)}}/127' + value: 'inet6 {{ bhyve_ipv6 | ansible.utils.ipmath(2 * item.index)}}/127' with_items: '{{ bhyve_guests }}' - name: Add guest interfaces