# ansible\_facts\['device\_links'\]\['ids'\] empty for RHEL9 on AWS

**URL:** <https://forum.ansible.com/t/ansible-facts-device-links-ids-empty-for-rhel9-on-aws/38828>\
**Category:** Ansible Project\
**Tags:** rhel, aws\
**Created:** [July 17, 2024, 6:20pm UTC](https://forum.ansible.com/t/ansible-facts-device-links-ids-empty-for-rhel9-on-aws/38828 "2024-07-17T18:20:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Walter\_Rowe](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/walter_rowe/32/4506_2.png) [@Walter\_Rowe](https://forum.ansible.com/u/Walter_Rowe)\
**Post date:** [July 17, 2024, 6:20pm UTC](https://forum.ansible.com/t/ansible-facts-device-links-ids-empty-for-rhel9-on-aws/38828/1 "2024-07-17T18:20:50Z")

</div>

I am querying ansible facts of AWS EC2s to get volume IDs without having to use the AWS API. Prior to Red Hat 9 I could use **ansible\_device\_links[‘ids’][_device name_]** to get the associated volume ID.

**REDHAT 8**

“ansible\_facts”: {  
“ansible\_device\_links”: {  
“ids”: {  
“_nvme0n1_”: [  
“nvme-Amazon\_Elastic\_Block\_Store\_ **vol0205cf99926f7c3e8** ”,  
“nvme-nvme.1d0f-766f6c3032303563663939393236663763336538-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001”  
],

Starting with Red Hat 9 we seem to have lost this info.

**REDHAT 9**

“ansible\_facts”: {  
“ansible\_device\_links”: {  
“ids”: {},

Is this something unique to my environment or is this something that changed with RHEL facts?

Walter

---

<div class="post-metadata">

**Author:** ![Akasurde](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akasurde/32/230_2.png) [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Post date:** [July 17, 2024, 6:27pm UTC](https://forum.ansible.com/t/ansible-facts-device-links-ids-empty-for-rhel9-on-aws/38828/2 "2024-07-17T18:27:54Z")

</div>

What is the content of /dev/disk/by-id on AWS EC2 instance?

---

<div class="post-metadata">

**Author:** ![Walter\_Rowe](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/walter_rowe/32/4506_2.png) [@Walter\_Rowe](https://forum.ansible.com/u/Walter_Rowe)\
**Post date:** [July 17, 2024, 6:52pm UTC](https://forum.ansible.com/t/ansible-facts-device-links-ids-empty-for-rhel9-on-aws/38828/3 "2024-07-17T18:52:15Z")

</div>

Bravo! It is empty on the RHEL9 system and populated on the RHEL8 system.

Now I need to determine why.

Walter
