ansible.fftdf.supernode/roles/00-system-set-network/tasks/templates/50-ifdown-hooks.sh.j2

6 lines
132 B
Django/Jinja

#!/bin/bash
if [ "$IFACE" == "gre*" ];
then
iptables -t nat -D POSTROUTING -o $IFACE -j SNAT --to-source {{ ffrl_ipv4 }}
fi