Modifying Iptables With Ansible

Hi,

Can anyone help me with implementing iptables with Ansible? I want my server to be accessible only from specific IP addresses. I want to drop all the traffic except coming from several nodes. Should I drop all traffic and then add some rule?
Kindly Help if anyone can?

Hi,

there are tons of iptables roles in ansible galaxy, this one looks quite nice: https://galaxy.ansible.com/hispanico/iptables/