Allow using connection: on the task level

This is the name of the setting on the play level, and the options.
Should be consistent.
parent e93ed2c1
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment