|
|
|
@ -115,9 +115,7 @@ class Task(object):
|
|
|
|
self.args = ds.get('args', {})
|
|
|
|
self.args = ds.get('args', {})
|
|
|
|
|
|
|
|
|
|
|
|
if self.sudo:
|
|
|
|
if self.sudo:
|
|
|
|
# this extra template call shouldn't be needed due to play template
|
|
|
|
self.sudo_user = template.template(play.basedir, ds.get('sudo_user', play.sudo_user), module_vars)
|
|
|
|
# TODO: verify that this is true
|
|
|
|
|
|
|
|
self.sudo_user = template.template(play.basedir, ds.get('sudo_user', play.sudo_user), play.vars)
|
|
|
|
|
|
|
|
self.sudo_pass = ds.get('sudo_pass', play.playbook.sudo_pass)
|
|
|
|
self.sudo_pass = ds.get('sudo_pass', play.playbook.sudo_pass)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
self.sudo_user = None
|
|
|
|
self.sudo_user = None
|
|
|
|
|