From ac69fcccdc77062ad7175e92606c77b769edad97 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Thu, 14 Sep 2017 15:40:50 +0100 Subject: [PATCH] Fix Dell OS network module timeout (#30355) The dellos action plugins should add the remote address of the switch provider to the play context. This was fixed in issue #23589 in an almost identical manner for the eos, ios, iosxr, and vyos action plugins. Fixes: #30350 --- lib/ansible/plugins/action/dellos10.py | 1 + lib/ansible/plugins/action/dellos6.py | 1 + lib/ansible/plugins/action/dellos9.py | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/ansible/plugins/action/dellos10.py b/lib/ansible/plugins/action/dellos10.py index e0a9b29d7d..ded8ff89a8 100644 --- a/lib/ansible/plugins/action/dellos10.py +++ b/lib/ansible/plugins/action/dellos10.py @@ -52,6 +52,7 @@ class ActionModule(_ActionModule): pc = copy.deepcopy(self._play_context) pc.connection = 'network_cli' pc.network_os = 'dellos10' + pc.remote_addr = provider['host'] or self._play_context.remote_addr pc.port = int(provider['port'] or self._play_context.port or 22) pc.remote_user = provider['username'] or self._play_context.connection_user pc.password = provider['password'] or self._play_context.password diff --git a/lib/ansible/plugins/action/dellos6.py b/lib/ansible/plugins/action/dellos6.py index f5d59ae0d0..ae56c78b3b 100644 --- a/lib/ansible/plugins/action/dellos6.py +++ b/lib/ansible/plugins/action/dellos6.py @@ -48,6 +48,7 @@ class ActionModule(_ActionModule): pc = copy.deepcopy(self._play_context) pc.connection = 'network_cli' pc.network_os = 'dellos6' + pc.remote_addr = provider['host'] or self._play_context.remote_addr pc.port = int(provider['port'] or self._play_context.port or 22) pc.remote_user = provider['username'] or self._play_context.connection_user pc.password = provider['password'] or self._play_context.password diff --git a/lib/ansible/plugins/action/dellos9.py b/lib/ansible/plugins/action/dellos9.py index a07145b334..a4d476cbe3 100644 --- a/lib/ansible/plugins/action/dellos9.py +++ b/lib/ansible/plugins/action/dellos9.py @@ -52,6 +52,7 @@ class ActionModule(_ActionModule): pc = copy.deepcopy(self._play_context) pc.connection = 'network_cli' pc.network_os = 'dellos9' + pc.remote_addr = provider['host'] or self._play_context.remote_addr pc.port = int(provider['port'] or self._play_context.port or 22) pc.remote_user = provider['username'] or self._play_context.connection_user pc.password = provider['password'] or self._play_context.password