diff --git a/lib/ansible/executor/task_queue_manager.py b/lib/ansible/executor/task_queue_manager.py index 3dd8ff0da48..63cf5d29211 100644 --- a/lib/ansible/executor/task_queue_manager.py +++ b/lib/ansible/executor/task_queue_manager.py @@ -279,4 +279,8 @@ class TaskQueueManager: try: method(*args, **kwargs) except Exception as e: - self._display.warning('Error when using %s: %s' % (method, str(e))) + try: + v1_method = method.replace('v2_','') + v1_method(*args, **kwargs) + except Exception: + self._display.warning('Error when using %s: %s' % (method, str(e)))