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
925c9eb3
Commit
925c9eb3
authored
Sep 08, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1021 from lorin/config-key
Have ansible respect private_key_file option
parents
8ebd228b
eabbaaec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
examples/ansible.cfg
+2
-2
lib/ansible/utils.py
+1
-1
No files found.
examples/ansible.cfg
View file @
925c9eb3
...
...
@@ -21,7 +21,7 @@ module_name = command
remote_tmp = $HOME/.ansible/tmp
# the default pattern for ansible-playbooks ("hosts:")
# the default pattern for ansible-playbooks ("hosts:")
pattern = *
...
...
@@ -62,7 +62,7 @@ remote_port=22
#remote_user=root
# if set, always use this private key file for authentication, same as if passing
# --private-key
-file
to ansible or ansible-playbook
# --private-key to ansible or ansible-playbook
#private_key_file=/path/to/file
...
...
lib/ansible/utils.py
View file @
925c9eb3
...
...
@@ -394,7 +394,7 @@ def base_parser(constants=C, usage="", output_opts=False, runas_opts=False,
default
=
constants
.
DEFAULT_HOST_LIST
)
parser
.
add_option
(
'-k'
,
'--ask-pass'
,
default
=
False
,
dest
=
'ask_pass'
,
action
=
'store_true'
,
help
=
'ask for SSH password'
)
parser
.
add_option
(
'--private-key'
,
default
=
None
,
dest
=
'private_key_file'
,
parser
.
add_option
(
'--private-key'
,
default
=
C
.
DEFAULT_PRIVATE_KEY_FILE
,
dest
=
'private_key_file'
,
help
=
'use this file to authenticate the connection'
)
parser
.
add_option
(
'-K'
,
'--ask-sudo-pass'
,
default
=
False
,
dest
=
'ask_sudo_pass'
,
action
=
'store_true'
,
help
=
'ask for sudo password'
)
...
...
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