Is there a way in Ansible / the iptables module to do something like this?
iptables -A OUTPUT ! -d 1.1.1.1 -j ACCEPT
Note the ! is before the -d option.
This documentation https://docs.ansible.com/ansible/iptables_module.html says to put it just before the ip but iptables since changed how they were doing it.
I can do it using a normal command but I was just curious if there’s any plans to support this.
Thanks!