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 -- Walter Rowe, Division Chief Infrastructure Services Division Mobile: 202.355.4123 REDHAT 8 { "ansible_facts": { "ansible_device_links": { "ids": { "nvme0n1": [ "nvme-Amazon_Elastic_Block_Store_vol0205cf99926f7c3e8", "nvme-nvme.1d0f-766f6c3032303563663939393236663763336538-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001" ], "nvme0n1p1": [ "nvme-Amazon_Elastic_Block_Store_vol0205cf99926f7c3e8-part1", "nvme-nvme.1d0f-766f6c3032303563663939393236663763336538-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001-part1", "wwn-nvme.1d0f-766f6c3032303563663939393236663763336538-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001-part1" ], "nvme0n1p2": [ "nvme-Amazon_Elastic_Block_Store_vol0205cf99926f7c3e8-part2", "nvme-nvme.1d0f-766f6c3032303563663939393236663763336538-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001-part2", "wwn-nvme.1d0f-766f6c3032303563663939393236663763336538-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001-part2" ], "nvme1n1": [ "nvme-Amazon_Elastic_Block_Store_vol0abf628274ab398f2", "nvme-nvme.1d0f-766f6c3061626636323832373461623339386632-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001" ], "nvme2n1": [ "nvme-Amazon_Elastic_Block_Store_vol0690b9672f6e52240", "nvme-nvme.1d0f-766f6c3036393062393637326636653532323430-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001" ], "nvme3n1": [ "nvme-Amazon_Elastic_Block_Store_vol08404f1191eb63440", "nvme-nvme.1d0f-766f6c3038343034663131393165623633343430-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001" ], "nvme4n1": [ "nvme-Amazon_Elastic_Block_Store_vol081f2b191f4e7d7cc", "nvme-nvme.1d0f-766f6c3038316632623139316634653764376363-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001" ], "nvme5n1": [ "nvme-Amazon_Elastic_Block_Store_vol0b51ac580c17c745e", "nvme-nvme.1d0f-766f6c3062353161633538306331376337343565-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001" ], "nvme6n1": [ "nvme-Amazon_Elastic_Block_Store_vol07427283fef5d12ad", "nvme-nvme.1d0f-766f6c3037343237323833666566356431326164-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001" ], "nvme7n1": [ "nvme-Amazon_Elastic_Block_Store_vol07c3177d94a329f70", "nvme-nvme.1d0f-766f6c3037633331373764393461333239663730-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001" ] }, "labels": { "nvme1n1": [ "tmp" ], "nvme2n1": [ "swap" ], "nvme3n1": [ "apps" ], "nvme4n1": [ "external" ], "nvme5n1": [ "archive" ], "nvme6n1": [ "orafra" ], "nvme7n1": [ "oradata" ] }, "masters": {}, "uuids": { "nvme0n1p2": [ "c9aa25ee-e65c-4818-9b2f-fa411d89f585" ], "nvme1n1": [ "e5d6f42e-45ca-4b3b-8492-46314d453a31" ], "nvme2n1": [ "5fd97b83-1ed6-4237-92cc-c95462493da6" ], "nvme3n1": [ "1130bd72-a26f-487f-8cd9-651618f8e840" ], "nvme4n1": [ "c99caa7c-15c8-4292-8ff1-6f5800f6ddc7" ], "nvme5n1": [ "e04f1c49-d88e-4fa1-93de-9418e1801a2d" ], "nvme6n1": [ "c38b2d4d-789c-46e6-a46f-e6f1fc7ce363" ], "nvme7n1": [ "57406353-bf84-4f63-8fce-d4ff8d786aa1" ] } }, "discovered_interpreter_python": "/usr/bin/python3.12" }, "changed": false } REDHAT 9 { "ansible_facts": { "ansible_device_links": { "ids": {}, "labels": { "xvda3": [ "boot" ], "xvda4": [ "root" ] }, "masters": {}, "uuids": { "xvda2": [ "7B77-95E7" ], "xvda3": [ "0e2c50ac-b7b2-4076-b753-43ae01e1e0d1" ], "xvda4": [ "658dabc8-57f5-4844-8315-01562be5c996" ] } }, "discovered_interpreter_python": "/usr/bin/python3.9" }, "changed": false } -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/B58587BA-F6A3-4B03-81E8-2374D2E7A35D%40nist.gov.