mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
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:
parent
65f1eb8e5c
commit
e3f54cb798
3 changed files with 14 additions and 0 deletions
|
@ -122,6 +122,7 @@ TASK_ATTRIBUTE_OVERRIDES = (
|
|||
'become_user',
|
||||
'become_pass',
|
||||
'become_method',
|
||||
'become_flags',
|
||||
'connection',
|
||||
'docker_extra_args',
|
||||
'delegate_to',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue