ansible: Support ansible_ssh_private_key_file

This commit is contained in:
David Wilson 2018-03-02 18:41:48 +05:45
parent a87b665099
commit da00437f1e
2 changed files with 3 additions and 1 deletions

View File

@ -132,6 +132,7 @@ class Connection(ansible.plugins.connection.ConnectionBase):
'password': self._play_context.password,
'port': self._play_context.port,
'python_path': self.python_path,
'identity_file': self._play_context.private_key_file,
'ssh_path': self._play_context.ssh_executable,
'connect_timeout': self.connect_timeout,
})

View File

@ -201,7 +201,8 @@ This list will grow as more missing pieces are discovered.
* ansible_user, ansible_ssh_user
* ansible_port, ssh_port
* ansible_ssh_executable, ssh_executable
* password (default: assume passwordless)
* ansible_ssh_private_key_file
* ansible_ssh_pass, ansible_password (default: assume passwordless)
Sudo Variables