1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #10566 from bcoca/role_sudo

readded sudo/su vars to allow role/includes to work with passed sudo/su
This commit is contained in:
Brian Coca 2015-03-29 10:14:26 -04:00
commit 7fdfb130bb

View file

@ -577,7 +577,7 @@ class Play(object):
# evaluate privilege escalation vars for current and child tasks
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:
included_become_vars[k] = x[k]
elif k in become_vars: