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 #5724 from angstwad/su-tasks-fix

Fix bug where playbook tasks do not escalate privs with 'su'
This commit is contained in:
jctanner 2014-01-23 14:05:14 -08:00
commit b2d594d24e

View file

@ -119,7 +119,7 @@ class Task(object):
self.tags = [ 'all' ]
self.register = ds.get('register', None)
self.sudo = utils.boolean(ds.get('sudo', play.sudo))
self.su = utils.boolean(ds.get('sudo', play.su))
self.su = utils.boolean(ds.get('su', play.su))
self.environment = ds.get('environment', {})
self.role_name = role_name