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
dabe4927
Commit
dabe4927
authored
Jan 21, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1883 from tgerla/devel
--private-key tilde handling
parents
7df3d811
495c4e6c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
CHANGELOG.md
+1
-0
docsite/rst/gettingstarted.rst
+1
-1
lib/ansible/runner/connection_plugins/paramiko_ssh.py
+1
-1
lib/ansible/runner/connection_plugins/ssh.py
+1
-1
No files found.
CHANGELOG.md
View file @
dabe4927
...
...
@@ -46,6 +46,7 @@ Ansible Changes By Release
*
SELinux fix for files created by authorized_key module
*
"template override" ??
*
lots of documentation tweaks
*
handle tilde shell character for --private-key
*
...
...
...
docsite/rst/gettingstarted.rst
View file @
dabe4927
...
...
@@ -197,7 +197,7 @@ Set up SSH agent to avoid retyping passwords:
$ ssh-agent bash
$ ssh-add ~/.ssh/id_rsa
(Depending on your setup, you may wish to ansible's --private-key
-file
option to specify a pem file instead)
(Depending on your setup, you may wish to ansible's --private-key option to specify a pem file instead)
Now ping all your nodes:
...
...
lib/ansible/runner/connection_plugins/paramiko_ssh.py
View file @
dabe4927
...
...
@@ -82,7 +82,7 @@ class Connection(object):
allow_agent
=
False
try
:
ssh
.
connect
(
self
.
host
,
username
=
user
,
allow_agent
=
allow_agent
,
look_for_keys
=
True
,
key_filename
=
self
.
runner
.
private_key_file
,
password
=
self
.
runner
.
remote_pass
,
key_filename
=
os
.
path
.
expanduser
(
self
.
runner
.
private_key_file
)
,
password
=
self
.
runner
.
remote_pass
,
timeout
=
self
.
runner
.
timeout
,
port
=
self
.
port
)
except
Exception
,
e
:
msg
=
str
(
e
)
...
...
lib/ansible/runner/connection_plugins/ssh.py
View file @
dabe4927
...
...
@@ -53,7 +53,7 @@ class Connection(object):
if
self
.
port
is
not
None
:
self
.
common_args
+=
[
"-o"
,
"Port=
%
d"
%
(
self
.
port
)]
if
self
.
runner
.
private_key_file
is
not
None
:
self
.
common_args
+=
[
"-o"
,
"IdentityFile="
+
self
.
runner
.
private_key_file
]
self
.
common_args
+=
[
"-o"
,
"IdentityFile="
+
os
.
path
.
expanduser
(
self
.
runner
.
private_key_file
)
]
if
self
.
runner
.
remote_pass
:
self
.
common_args
+=
[
"-o"
,
"GSSAPIAuthentication=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