mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Adding more magic variables for connection info to v2
This commit is contained in:
@@ -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_ssh_port'] = self.port
|
variables['ansible_connection'] = self.connection
|
||||||
variables['ansible_ssh_user'] = self.remote_user
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user