1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Adding more magic variables for connection info to v2

This commit is contained in:
James Cammarata 2015-04-15 01:07:55 -05:00
parent 460dc5e4db
commit 96a7d85b61

View file

@ -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