# getting value from command line

**URL:** <https://forum.ansible.com/t/getting-value-from-command-line/24349>\
**Category:** Ansible Developer\
**Created:** [April 28, 2017, 8:40am UTC](https://forum.ansible.com/t/getting-value-from-command-line/24349 "2017-04-28T08:40:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anand\_Dasari](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@Anand\_Dasari](https://forum.ansible.com/u/Anand_Dasari)\
**Post date:** [April 28, 2017, 8:40am UTC](https://forum.ansible.com/t/getting-value-from-command-line/24349/1 "2017-04-28T08:40:40Z")

</div>

Hi

is there anyway i can get value from command line arguments

for eg., my commadn line is

ansible-playbook -i inv/sit1 playbooks/sit1/test.yml

in test.yml i want to capture the value from inv/sit1 as sit1,
