From c36597411744eac295922003d052e36f41f71f14 Mon Sep 17 00:00:00 2001 From: David Hughes Date: Fri, 15 Mar 2013 11:30:51 -0700 Subject: [PATCH] Added variable expansion to task sudo_user parameter --- lib/ansible/playbook/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index a74971e673b..d40ca300b62 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -94,7 +94,7 @@ class Task(object): self.args = ds.get('args', {}) if self.sudo: - self.sudo_user = ds.get('sudo_user', play.sudo_user) + self.sudo_user = utils.template(play.basedir, ds.get('sudo_user', play.sudo_user), play.vars) self.sudo_pass = ds.get('sudo_pass', play.playbook.sudo_pass) else: self.sudo_user = None