From cc347dcaa9affd1360d1be896724a74732c04e8b Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 13 May 2016 16:59:36 -0400 Subject: [PATCH] Adding a deprecation message for accelerated mode --- lib/ansible/executor/task_executor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py index 5f172da0d31..04ea22a02ee 100644 --- a/lib/ansible/executor/task_executor.py +++ b/lib/ansible/executor/task_executor.py @@ -634,6 +634,8 @@ class TaskExecutor: raise AnsibleError("the connection plugin '%s' was not found" % conn_type) if self._play_context.accelerate: + # accelerate is deprecated as of 2.1... + display.deprecated('Accelerated mode is deprecated. Consider using SSH with ControlPersist and pipelining enabled instead') # launch the accelerated daemon here ssh_connection = connection handler = self._shared_loader_obj.action_loader.get(