From 96a7d85b61bf6b513ffe406bef09f98e676544ef Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 15 Apr 2015 01:07:55 -0500 Subject: [PATCH] Adding more magic variables for connection info to v2 --- v2/ansible/executor/connection_info.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/v2/ansible/executor/connection_info.py b/v2/ansible/executor/connection_info.py index 54bd4c3b432..e036342c191 100644 --- a/v2/ansible/executor/connection_info.py +++ b/v2/ansible/executor/connection_info.py @@ -267,5 +267,9 @@ class ConnectionInformation: Adds 'magic' variables relating to connections to the variable dictionary provided. ''' - variables['ansible_ssh_port'] = self.port - variables['ansible_ssh_user'] = self.remote_user + variables['ansible_connection'] = self.connection + variables['ansible_ssh_host'] = self.remote_addr + variables['ansible_ssh_pass'] = self.password + variables['ansible_ssh_port'] = self.port + variables['ansible_ssh_user'] = self.remote_user + variables['ansible_ssh_private_key_file'] = self.private_key_file