# Access the value of -u flag in ansible role

**URL:** <https://forum.ansible.com/t/access-the-value-of-u-flag-in-ansible-role/26873>\
**Category:** Ansible Project\
**Created:** [March 1, 2018, 7:18am UTC](https://forum.ansible.com/t/access-the-value-of-u-flag-in-ansible-role/26873 "2018-03-01T07:18:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sahil\_Sawhney](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@Sahil\_Sawhney](https://forum.ansible.com/u/Sahil_Sawhney)\
**Post date:** [March 1, 2018, 7:18am UTC](https://forum.ansible.com/t/access-the-value-of-u-flag-in-ansible-role/26873/1 "2018-03-01T07:18:09Z")

</div>

Is there a way by which we can access the value of the flags (especially the **–private-key** and **-u** flags) we provide while running the ansible script; inside the ansible role?

Thanks
