Deprecation warning when using "sudo_flags" in ansible.cfg #47006
Labels
affects_2.4
This issue/PR affects Ansible v2.4
bug
This issue/PR relates to a bug.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
SUMMARY
Using "sudo_flags" in my ansible.cfg causes the following warning to always be displayed when I run my playbooks:
First, I only use "become: yes" in my playbooks already. The only reason why I had to override
sudo_flags
is to include "-E" so I can git-clone as root but using my local user's ssh key.I don't think the warning is fair, for lack of better word: there is no other way to specify sudo flags --
become_flags
does not exist, or at least I cannot just rename sudo_flags to become_flags and expect everything to work the same way.ISSUE TYPE
COMPONENT NAME
ansible-playbook
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
macOS 10.12.6
STEPS TO REPRODUCE
Any ansible command:
ansible foo -m ping
EXPECTED RESULTS
No warning.
ACTUAL RESULTS
Warning
The text was updated successfully, but these errors were encountered: