If I understand you want iptables to be persistent across reboots? Would the following be useful?:
apt-get update -y && apt-get install iptables-persistent -y
service netfilter-persistent save
I have no clue about ansible as I have not explored that region of selfhosting yet. It’s on the list tho.
Tailscale Healthcheck looks interesting.