# Purge any iptables rules which are NOT in playbook

**URL:** <https://forum.ansible.com/t/purge-any-iptables-rules-which-are-not-in-playbook/22335>\
**Category:** Ansible Project\
**Created:** [August 21, 2016, 2:17pm UTC](https://forum.ansible.com/t/purge-any-iptables-rules-which-are-not-in-playbook/22335 "2016-08-21T14:17:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Doe](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@John\_Doe](https://forum.ansible.com/u/John_Doe)\
**Post date:** [August 21, 2016, 2:17pm UTC](https://forum.ansible.com/t/purge-any-iptables-rules-which-are-not-in-playbook/22335/1 "2016-08-21T14:17:47Z")

</div>

Hey,

I want to make sure that any existing iptables rules will be gone after I run my play book, in puppet I just need to set purge to yes or something very similar, but I can’t find anything related in ansible/iptables module. Any ideas how I could achieve that ?

Thanks,
