# ipaddr always compresses IPv6 addresses

**URL:** <https://forum.ansible.com/t/ipaddr-always-compresses-ipv6-addresses/38736>\
**Category:** Ansible Project\
**Created:** [April 2, 2024, 7:44pm UTC](https://forum.ansible.com/t/ipaddr-always-compresses-ipv6-addresses/38736 "2024-04-02T19:44:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [April 2, 2024, 7:44pm UTC](https://forum.ansible.com/t/ipaddr-always-compresses-ipv6-addresses/38736/1 "2024-04-02T19:44:19Z")

</div>

Hii,  
I noticed that the ipaddr filter seems to compress IPv6 addresses.  
For example I feed a list to ipaddr that contains (among other things)  
uncompressed IPv6 addresses:

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [April 2, 2024, 8:19pm UTC](https://forum.ansible.com/t/ipaddr-always-compresses-ipv6-addresses/38736/2 "2024-04-02T20:19:07Z")

</div>

To answer my own question, it seems there is: ipv6form.  
The docs are mangled though:  
[https://docs.ansible.com/ansible/latest/collections/ansible/utils/ipv6form\_filter.html](https://docs.ansible.com/ansible/latest/collections/ansible/utils/ipv6form_filter.html)  
I was able to get what I need by reading the source.

Dick
