# \[WARNING\]: Consider using 'become', 'become\_method', and 'become\_user' rather than running sudo

**URL:** <https://forum.ansible.com/t/warning-consider-using-become-become-method-and-become-user-rather-than-running-sudo/24483>\
**Category:** Ansible Project\
**Created:** [May 14, 2017, 7:29pm UTC](https://forum.ansible.com/t/warning-consider-using-become-become-method-and-become-user-rather-than-running-sudo/24483 "2017-05-14T19:29:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![devopsaws.santhosh](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@devopsaws.santhosh](https://forum.ansible.com/u/devopsaws.santhosh)\
**Post date:** [May 14, 2017, 7:29pm UTC](https://forum.ansible.com/t/warning-consider-using-become-become-method-and-become-user-rather-than-running-sudo/24483/1 "2017-05-14T19:29:16Z")

</div>

**when im trying to install jenkins using ansible everything is working fine jenkins is also working but need to know how the message warning remove when i run ansible playbook**

**i’m menstioned under hosts**  
**become: true**  
**become\_method: sudo**  
**become\_user: root**

**thanq**
