Add support for become_flags on the task level (#17310)

Working on the test suite, I tried to replace a call to sudo to a
call to su, and found out that I can't change user to 'nobody'
without changing the option become_flags in ansible.cfg

As this would be dependent on the user and the task, it make more sense
to push the setting there.
This commit is contained in:
Michael Scherer 2016-08-30 21:29:00 +02:00 committed by Toshio Kuratomi
parent 65f1eb8e5c
commit e3f54cb798
3 changed files with 14 additions and 0 deletions

View file

@ -122,6 +122,7 @@ TASK_ATTRIBUTE_OVERRIDES = (
'become_user',
'become_pass',
'become_method',
'become_flags',
'connection',
'docker_extra_args',
'delegate_to',