From 4555cdc49c01668a5acf27c3b8a9d5e00666a093 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Thu, 3 Jan 2013 21:27:01 +0100 Subject: [PATCH] Allow using connection: on the task level This is the name of the setting on the play level, and the options. Should be consistent. --- 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 355db227d4d..119bec0ed13 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -97,7 +97,7 @@ class Task(object): else: self.action = ds.get('action', '') self.delegate_to = ds.get('delegate_to', None) - self.transport = ds.get('transport', play.transport) + self.transport = ds.get('connection', ds.get('transport', play.transport)) # delegate_to can use variables if not (self.delegate_to is None):