# Easy way to determine if user elevation is requested

**URL:** <https://forum.ansible.com/t/easy-way-to-determine-if-user-elevation-is-requested/20614>\
**Category:** Ansible Project\
**Created:** [February 18, 2016, 1:09pm UTC](https://forum.ansible.com/t/easy-way-to-determine-if-user-elevation-is-requested/20614 "2016-02-18T13:09:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_Leemans](https://avatars.discourse-cdn.com/v4/letter/w/cab0a1/32.png) [@William\_Leemans](https://forum.ansible.com/u/William_Leemans)\
**Post date:** [February 18, 2016, 1:09pm UTC](https://forum.ansible.com/t/easy-way-to-determine-if-user-elevation-is-requested/20614/1 "2016-02-18T13:09:33Z")

</div>

Is there an easy way to detect whether or not elevation is requested?

determine if  
ansible-playbook … --become  
is executed  
or the  
ansible\_become: true  
is set?

Thanks  
Will.
