# How to get the command line parameters in yaml

**URL:** <https://forum.ansible.com/t/how-to-get-the-command-line-parameters-in-yaml/21060>\
**Category:** Ansible Project\
**Created:** [April 4, 2016, 4:00pm UTC](https://forum.ansible.com/t/how-to-get-the-command-line-parameters-in-yaml/21060 "2016-04-04T16:00:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maribel.barrera21](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@maribel.barrera21](https://forum.ansible.com/u/maribel.barrera21)\
**Post date:** [April 4, 2016, 4:00pm UTC](https://forum.ansible.com/t/how-to-get-the-command-line-parameters-in-yaml/21060/1 "2016-04-04T16:00:49Z")

</div>

I need to be able to find out what parameters are entered when running an ansible playbook and do testing. e.g. command:  
ansible-playbook myplaybook.yml -l eastCoastHosts

Since the subhost can be specify in Jenkins job, I need to know if the -l parameter is entered in the command.
