From 8716a5bc6791ef1d4d96df67fa84d0e5ad286983 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Fri, 17 Feb 2017 13:56:00 -0500 Subject: [PATCH] maps ios provider ssh_keyfile to play_context (#21597) This allows the key file to be specified in the playbook for the ios module provider argument --- lib/ansible/plugins/action/ios.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/plugins/action/ios.py b/lib/ansible/plugins/action/ios.py index 57d84a97ff..2a8a532c97 100644 --- a/lib/ansible/plugins/action/ios.py +++ b/lib/ansible/plugins/action/ios.py @@ -56,6 +56,7 @@ class ActionModule(_ActionModule): pc.port = 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 + pc.private_key_file = provider['ssh_keyfile'] or self._play_context.private_key_file pc.timeout = provider['timeout'] or self._play_context.timeout pc.become = provider['authorize'] or False pc.become_pass = provider['auth_pass']