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
0f91add8
Commit
0f91add8
authored
Jun 23, 2014
by
Thomas Mangin
Committed by
James Cammarata
Jun 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicitly set the user option for ssh connections
Fixes #7170
parent
f8bf9cde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
lib/ansible/runner/connection_plugins/ssh.py
+1
-2
No files found.
lib/ansible/runner/connection_plugins/ssh.py
View file @
0f91add8
...
@@ -94,8 +94,7 @@ class Connection(object):
...
@@ -94,8 +94,7 @@ class Connection(object):
self
.
common_args
+=
[
"-o"
,
"KbdInteractiveAuthentication=no"
,
self
.
common_args
+=
[
"-o"
,
"KbdInteractiveAuthentication=no"
,
"-o"
,
"PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey"
,
"-o"
,
"PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey"
,
"-o"
,
"PasswordAuthentication=no"
]
"-o"
,
"PasswordAuthentication=no"
]
if
self
.
user
!=
pwd
.
getpwuid
(
os
.
geteuid
())[
0
]:
self
.
common_args
+=
[
"-o"
,
"User="
+
(
self
.
user
or
self
.
user
or
pwd
.
getpwuid
(
os
.
geteuid
())[
0
])]
self
.
common_args
+=
[
"-o"
,
"User="
+
self
.
user
]
self
.
common_args
+=
[
"-o"
,
"ConnectTimeout=
%
d"
%
self
.
runner
.
timeout
]
self
.
common_args
+=
[
"-o"
,
"ConnectTimeout=
%
d"
%
self
.
runner
.
timeout
]
return
self
return
self
...
...
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