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

Allow using connection: on the task level

This is the name of the setting on the play level, and the options.
Should be consistent.
This commit is contained in:
Daniel Hokka Zakrisson 2013-01-03 21:27:01 +01:00
parent e93ed2c167
commit 4555cdc49c

View file

@ -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):