Adding more magic variables for connection info to v2

pull/10714/merge
James Cammarata 10 years ago
parent 460dc5e4db
commit 96a7d85b61

@ -267,5 +267,9 @@ class ConnectionInformation:
Adds 'magic' variables relating to connections to the variable dictionary provided. Adds 'magic' variables relating to connections to the variable dictionary provided.
''' '''
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_port'] = self.port
variables['ansible_ssh_user'] = self.remote_user variables['ansible_ssh_user'] = self.remote_user
variables['ansible_ssh_private_key_file'] = self.private_key_file

Loading…
Cancel
Save