# Dynamic inventory / Inline content help

**URL:** <https://forum.ansible.com/t/dynamic-inventory-inline-content-help/25739>\
**Category:** Ansible Project\
**Created:** [October 12, 2017, 4:40pm UTC](https://forum.ansible.com/t/dynamic-inventory-inline-content-help/25739 "2017-10-12T16:40:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron\_Street](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@Aaron\_Street](https://forum.ansible.com/u/Aaron_Street)\
**Post date:** [October 12, 2017, 4:40pm UTC](https://forum.ansible.com/t/dynamic-inventory-inline-content-help/25739/1 "2017-10-12T16:40:48Z")

</div>

Hi all,

I am passing a jenkins build job to Ansible that contain the Instance ID such as “i-0803f13f0236a495f” I want to used this as the input to the dynamic inventory and was hoping to use the ec2.py script to do this but i can’t figure out how to pull this value back easily

What I want to be able to do is in the dynamic inventory field be able to send one or more ID and it return the correctly formatted JSON script but i can’t seem to do this with ec2.py can any one help?

Thank you

Aaron
