From e875089ebacbd009a8b9353e78d6db23ede32c2d Mon Sep 17 00:00:00 2001 From: Paul Durivage Date: Wed, 22 Jan 2014 11:04:19 -0600 Subject: [PATCH] Fix bug where self.su was being set by the sudo param in play tasks --- 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 0350ca2ac21..b53e74ec9cb 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -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