From 662b35cbce50b43f542750451fd35d58bfa2ffd9 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 27 Mar 2015 18:30:42 -0400 Subject: [PATCH] readded sudo/su vars to allow role/includes to work with passed sudo/su --- lib/ansible/playbook/play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index edec30df758..a24c5fff1b5 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -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: