mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
readded sudo/su vars to allow role/includes to work with passed sudo/su
This commit is contained in:
parent
d628f3f591
commit
662b35cbce
1 changed files with 1 additions and 1 deletions
|
@ -577,7 +577,7 @@ class Play(object):
|
||||||
|
|
||||||
# evaluate privilege escalation vars for current and child tasks
|
# evaluate privilege escalation vars for current and child tasks
|
||||||
included_become_vars = {}
|
included_become_vars = {}
|
||||||
for k in ["become", "become_user", "become_method", "become_exe"]:
|
for k in ["become", "become_user", "become_method", "become_exe", "sudo", "su", "sudo_user", "su_user"]:
|
||||||
if k in x:
|
if k in x:
|
||||||
included_become_vars[k] = x[k]
|
included_become_vars[k] = x[k]
|
||||||
elif k in become_vars:
|
elif k in become_vars:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue