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

Added variable expansion to task sudo_user parameter

This commit is contained in:
David Hughes 2013-03-15 11:30:51 -07:00
parent fc8d9377d5
commit c365974117

View file

@ -94,7 +94,7 @@ class Task(object):
self.args = ds.get('args', {}) self.args = ds.get('args', {})
if self.sudo: 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) self.sudo_pass = ds.get('sudo_pass', play.playbook.sudo_pass)
else: else:
self.sudo_user = None self.sudo_user = None