# iptables - Extrapositioned exclamation point

**URL:** <https://forum.ansible.com/t/iptables-extrapositioned-exclamation-point/21848>\
**Category:** Ansible Project\
**Created:** [June 23, 2016, 8:02pm UTC](https://forum.ansible.com/t/iptables-extrapositioned-exclamation-point/21848 "2016-06-23T20:02:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pat\_Roy](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@Pat\_Roy](https://forum.ansible.com/u/Pat_Roy)\
**Post date:** [June 23, 2016, 8:02pm UTC](https://forum.ansible.com/t/iptables-extrapositioned-exclamation-point/21848/1 "2016-06-23T20:02:00Z")

</div>

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](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!
