Using "sudo_flags" in my ansible.cfg causes the following warning to always be displayed when I run my playbooks:
[DEPRECATION WARNING]: DEFAULT_SUDO_FLAGS option, In favor of become which is a generic framework . This feature
will be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in
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.