sudo_exe deprecated in 2.8 use become_exe

21 views
Skip to first unread message

Chris

unread,
May 16, 2018, 10:54:24 AM5/16/18
to Ansible Project
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?


Thanks,

Chris

Kai Stian Olstad

unread,
May 16, 2018, 11:15:32 AM5/16/18
to ansible...@googlegroups.com
On 16.05.2018 16:54, Chris wrote:
> However there isn't any documentation related to become_exe.

https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-become-exe

--
Kai Stian Olstad

Chris

unread,
May 16, 2018, 11:28:22 AM5/16/18
to Ansible Project
Brilliant. I don't know how I missed that in the documentation.


Thank you!
Reply all
Reply to author
Forward
0 new messages