# AWX reach openstack inventory with IPv6

**URL:** <https://forum.ansible.com/t/awx-reach-openstack-inventory-with-ipv6/38588>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [November 20, 2023, 4:08pm UTC](https://forum.ansible.com/t/awx-reach-openstack-inventory-with-ipv6/38588 "2023-11-20T16:08:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel\_ARGENTIERI](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@Gabriel\_ARGENTIERI](https://forum.ansible.com/u/Gabriel_ARGENTIERI)\
**Post date:** [November 20, 2023, 4:08pm UTC](https://forum.ansible.com/t/awx-reach-openstack-inventory-with-ipv6/38588/1 "2023-11-20T16:08:30Z")

</div>

Hello,

On AWX (AWX 19.4.0) installed with AWX Operator,

We use the Openstack plugin ([https://docs.ansible.com/ansible/latest/collections/openstack/cloud/openstack\_inventory.html](https://docs.ansible.com/ansible/latest/collections/openstack/cloud/openstack_inventory.html)) to bring up hosts in an inventory, on the other hand, we use the v4/v6 dual stack on openstack,  
Here are the variables for a host in the inventory:

{  
“ansible\_host”: “2a06:7d90:0:cafe:f816:3eff:fe4a:2175”,  
“ansible\_ssh\_host”: “2a06:7d90:0:cafe:f816:3eff:fe4a:2175”,  
“openstack”: {  
“access\_ipv4”: “”,  
“access\_ipv6”: “”,  
“addresses”: {  
“fr-1-public”: [  
{  
“OS-EXT-IPS-MAC:mac\_addr”: “fa:16:3e:4a:21:75”,  
“OS-EXT-IPS:type”: “fixed”,  
“addr”: “2a06:7d90:0:cafe:f816:3eff:fe4a:2175”,  
“version”: 6  
},  
{  
“OS-EXT-IPS-MAC:mac\_addr”: “fa:16:3e:4a:21:75”,  
“OS-EXT-IPS:type”: “fixed”,  
“addr”: “185.100.51.21”,  
“version”: 4  
}  
]  
},

On the other hand, when launching a playbook, it’s based on ansible\_ssh\_host so in IPV6, but I can’t find a way to prioritize ipv4, do you have any ideas?

Thanks

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [November 20, 2023, 4:27pm UTC](https://forum.ansible.com/t/awx-reach-openstack-inventory-with-ipv6/38588/2 "2023-11-20T16:27:48Z")

</div>

Take a look at this issue, it explains how this can be achieved:

[https://github.com/ansible/ansible/issues/82119](https://github.com/ansible/ansible/issues/82119)
