# sudo\_exe deprecated in 2.8 use become\_exe

**URL:** <https://forum.ansible.com/t/sudo-exe-deprecated-in-2-8-use-become-exe/27544>\
**Category:** Ansible Project\
**Created:** [May 16, 2018, 2:54pm UTC](https://forum.ansible.com/t/sudo-exe-deprecated-in-2-8-use-become-exe/27544 "2018-05-16T14:54:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris7](https://avatars.discourse-cdn.com/v4/letter/c/439d5e/32.png) [@Chris7](https://forum.ansible.com/u/Chris7)\
**Post date:** [May 16, 2018, 2:54pm UTC](https://forum.ansible.com/t/sudo-exe-deprecated-in-2-8-use-become-exe/27544/1 "2018-05-16T14:54:24Z")

</div>

Good day,

I have an alternate location for my sudo command for root. When I set the path in ansible.cfg my command executes correctly however I get the warning listed below. I changed this path in ansible.cfg using sudo\_exe.

[DEPRECATION WARNING]: DEFAULT\_SUDO\_EXE option, In favor of Ansible Become, which is a generic framework. See become\_exe. , use become instead. This feature will be removed in version 2.8. Deprecation warnings can be  
disabled by setting deprecation\_warnings=False in ansible.cfg.

However there isn’t any documentation related to become\_exe. Do I just replace my alternate path in my plays?

[https://docs.ansible.com/ansible/latest/user\_guide/become.html](https://docs.ansible.com/ansible/latest/user_guide/become.html)

Thanks,

Chris

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [May 16, 2018, 3:15pm UTC](https://forum.ansible.com/t/sudo-exe-deprecated-in-2-8-use-become-exe/27544/2 "2018-05-16T15:15:08Z")

</div>

[https://docs.ansible.com/ansible/latest/reference\_appendices/config.html#default-become-exe](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-become-exe)

---

<div class="post-metadata">

**Author:** ![Chris7](https://avatars.discourse-cdn.com/v4/letter/c/439d5e/32.png) [@Chris7](https://forum.ansible.com/u/Chris7)\
**Post date:** [May 16, 2018, 3:28pm UTC](https://forum.ansible.com/t/sudo-exe-deprecated-in-2-8-use-become-exe/27544/3 "2018-05-16T15:28:22Z")

</div>

Brilliant. I don’t know how I missed that in the documentation.

Thank you!
