# How to pass dynamic value of Ansible variable to Shell script variable and vice versa.

**URL:** <https://forum.ansible.com/t/how-to-pass-dynamic-value-of-ansible-variable-to-shell-script-variable-and-vice-versa/36145>\
**Category:** Ansible Developer\
**Created:** [December 22, 2021, 6:00am UTC](https://forum.ansible.com/t/how-to-pass-dynamic-value-of-ansible-variable-to-shell-script-variable-and-vice-versa/36145 "2021-12-22T06:00:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Girish\_Attarde](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@Girish\_Attarde](https://forum.ansible.com/u/Girish_Attarde)\
**Post date:** [December 22, 2021, 6:00am UTC](https://forum.ansible.com/t/how-to-pass-dynamic-value-of-ansible-variable-to-shell-script-variable-and-vice-versa/36145/1 "2021-12-22T06:00:42Z")

</div>

Can anyone please help me for syntax or logic.

Thanks in advance.
