From ccdb42c40ce909c1026835b757984cf4cff7a940 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 6 Sep 2022 02:24:00 +0200 Subject: replace remaining ipaddr() filter calls --- inventory/host_vars/ele-mur.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'inventory/host_vars/ele-mur.yml') diff --git a/inventory/host_vars/ele-mur.yml b/inventory/host_vars/ele-mur.yml index 57d44fff..598f2f8e 100644 --- a/inventory/host_vars/ele-mur.yml +++ b/inventory/host_vars/ele-mur.yml @@ -30,15 +30,15 @@ network: interfaces: "{{ install.interfaces }}" primary: &_network_primary_ name: primary0 - address: "{{ vm_host.network.bridges.public.prefix | ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address/prefix') }}" + address: "{{ vm_host.network.bridges.public.prefix | ansible.utils.ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) }}" gateway: "{{ vm_host.network.bridges.public.gateway }}" - address6: "{{ vm_host.network.bridges.public.prefix6 | ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address/prefix') }}" + address6: "{{ vm_host.network.bridges.public.prefix6 | ansible.utils.ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) }}" gateway6: "{{ vm_host.network.bridges.public.gateway6 }}" interfaces: - *_network_primary_ - name: funkfeuer0 content: | - address {{ network_zones.murat_transfer.prefix | ipaddr(network_zones.murat_transfer.offsets[inventory_hostname]) | ipaddr('address/prefix') }} - up iptables -t nat -A POSTROUTING -s {{ network_zones.murat_transfer.prefix | ipaddr('network/prefix') }} -o primary0 -j SNAT --to {{ vm_host.network.bridges.public.prefix | ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address') }} + address {{ network_zones.murat_transfer.prefix | ansible.utils.ipaddr(network_zones.murat_transfer.offsets[inventory_hostname]) }} + up iptables -t nat -A POSTROUTING -s {{ network_zones.murat_transfer.prefix }} -o primary0 -j SNAT --to {{ vm_host.network.bridges.public.prefix | ansible.utils.ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }} up sysctl net.ipv4.ip_forward=1 - down iptables -t nat -D POSTROUTING -s {{ network_zones.murat_transfer.prefix | ipaddr('network/prefix') }} -o primary0 -j SNAT --to {{ vm_host.network.bridges.public.prefix | ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address') }} + down iptables -t nat -D POSTROUTING -s {{ network_zones.murat_transfer.prefix }} -o primary0 -j SNAT --to {{ vm_host.network.bridges.public.prefix | ansible.utils.ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }} -- cgit v1.2.3