Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
c8fde467
Commit
c8fde467
authored
Jun 11, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11163 from sivel/ssh-private-key-fixme
Re-introduce ssh connection private key support
parents
fbdc84be
6a97e49a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
lib/ansible/plugins/connections/ssh.py
+2
-5
No files found.
lib/ansible/plugins/connections/ssh.py
View file @
c8fde467
...
@@ -99,11 +99,8 @@ class Connection(ConnectionBase):
...
@@ -99,11 +99,8 @@ class Connection(ConnectionBase):
if
self
.
_connection_info
.
port
is
not
None
:
if
self
.
_connection_info
.
port
is
not
None
:
self
.
_common_args
+=
(
"-o"
,
"Port={0}"
.
format
(
self
.
_connection_info
.
port
))
self
.
_common_args
+=
(
"-o"
,
"Port={0}"
.
format
(
self
.
_connection_info
.
port
))
# FIXME: need to get this from connection info
if
self
.
_connection_info
.
private_key_file
is
not
None
:
#if self.private_key_file is not None:
self
.
_common_args
+=
(
"-o"
,
"IdentityFile=
\"
{0}
\"
"
.
format
(
os
.
path
.
expanduser
(
self
.
_connection_info
.
private_key_file
)))
# self._common_args += ("-o", "IdentityFile=\"{0}\"".format(os.path.expanduser(self.private_key_file)))
#elif self.runner.private_key_file is not None:
# self._common_args += ("-o", "IdentityFile=\"{0}\"".format(os.path.expanduser(self.runner.private_key_file)))
if
self
.
_connection_info
.
password
:
if
self
.
_connection_info
.
password
:
self
.
_common_args
+=
(
"-o"
,
"GSSAPIAuthentication=no"
,
self
.
_common_args
+=
(
"-o"
,
"GSSAPIAuthentication=no"
,
"-o"
,
"PubkeyAuthentication=no"
)
"-o"
,
"PubkeyAuthentication=no"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment