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:

---
- name: Testing
  hosts: localhost
  connection: local
  gather_facts: no

  vars:
    ips:
      - 192.168.178.1
      - fd00:0000:0000:0000:06b4:feff:fe59:ebf4
      - 2a10:3782:542d:0001:06b4:feff:fe59:ebf4
      - fritz.box

  tasks:
    - debug: var=ips|ipaddr('address')

gives:

TASK [debug] 
**********************************************************************
ok: [localhost] =>
  ips|ipaddr('address'):
  - 192.168.178.1
  - fd00::6b4:feff:fe59:ebf4
  - 2a10:3782:542d:1:6b4:feff:fe59:ebf4



Is there a way to keep the original format?
Or a more generic filter that can (de)compress IPv6 addresses?

thx

Dick

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAF8BbLafVzFXfF9z6CruAzDXEEK79ZMY6ndfo3fB9JvdQKJ%2BKg%40mail.gmail.com.

Reply via email to