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
93c746db
Commit
93c746db
authored
Feb 24, 2014
by
jctanner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5651 from nikut/sshfix
allow ansible_ssh_private_key_file to be templated (thanks to benno)
parents
13604e75
6cc9b16f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
lib/ansible/runner/__init__.py
+1
-0
lib/ansible/runner/action_plugins/synchronize.py
+2
-0
No files found.
lib/ansible/runner/__init__.py
View file @
93c746db
...
...
@@ -718,6 +718,7 @@ class Runner(object):
actual_pass
=
inject
.
get
(
'ansible_ssh_pass'
,
self
.
remote_pass
)
actual_transport
=
inject
.
get
(
'ansible_connection'
,
self
.
transport
)
actual_private_key_file
=
inject
.
get
(
'ansible_ssh_private_key_file'
,
self
.
private_key_file
)
actual_private_key_file
=
template
.
template
(
self
.
basedir
,
actual_private_key_file
,
inject
,
fail_on_undefined
=
True
)
self
.
sudo_pass
=
inject
.
get
(
'ansible_sudo_pass'
,
self
.
sudo_pass
)
self
.
su
=
inject
.
get
(
'ansible_su'
,
self
.
su
)
self
.
su_pass
=
inject
.
get
(
'ansible_su_pass'
,
self
.
su_pass
)
...
...
lib/ansible/runner/action_plugins/synchronize.py
View file @
93c746db
...
...
@@ -135,6 +135,8 @@ class ActionModule(object):
else
:
private_key
=
inject
.
get
(
'ansible_ssh_private_key_file'
,
self
.
runner
.
private_key_file
)
private_key
=
template
.
template
(
self
.
runner
.
basedir
,
private_key
,
inject
,
fail_on_undefined
=
True
)
if
not
private_key
is
None
:
private_key
=
os
.
path
.
expanduser
(
private_key
)
options
[
'private_key'
]
=
private_key
...
...
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