From 62b53f4d2c214bebdfc703d18c380bab08d0e35f Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Sun, 5 May 2013 16:54:26 +0200 Subject: [PATCH] changed the delegate_to to also use ansible_ssh_private_key_file from the inventory file --- lib/ansible/runner/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 74d63004b5..78e0887ea4 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -489,7 +489,7 @@ class Runner(object): actual_port = delegate_info.get('ansible_ssh_port', port) actual_user = delegate_info.get('ansible_ssh_user', actual_user) actual_pass = delegate_info.get('ansible_ssh_pass', actual_pass) - actual_private_key_file = delegate_info.get('private_key_file', self.private_key_file) + actual_private_key_file = delegate_info.get('ansible_ssh_private_key_file', self.private_key_file) actual_transport = delegate_info.get('ansible_connection', self.transport) for i in delegate_info: if i.startswith("ansible_") and i.endswith("_interpreter"):