summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ele-mur.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-09-06 02:24:00 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-09-06 02:24:00 +0200
commitccdb42c40ce909c1026835b757984cf4cff7a940 (patch)
tree68d28bdff78a94e3deb179f955ab5a445a8a4c7a /inventory/host_vars/ele-mur.yml
parentreplace some more ipaddr() filter calls (cont'd) (diff)
replace remaining ipaddr() filter calls
Diffstat (limited to 'inventory/host_vars/ele-mur.yml')
-rw-r--r--inventory/host_vars/ele-mur.yml10
1 files changed, 5 insertions, 5 deletions
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') }}