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
17e65b45
Commit
17e65b45
authored
May 04, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10913 from bcoca/sudosu_ask_fix
now properly inherit data from ansible.cfg for sudo/su ask pass
parents
cbde1c5e
b23a8792
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
lib/ansible/utils/__init__.py
+2
-2
v2/ansible/cli/__init__.py
+2
-2
No files found.
lib/ansible/utils/__init__.py
View file @
17e65b45
...
...
@@ -1024,9 +1024,9 @@ def base_parser(constants=C, usage="", output_opts=False, runas_opts=False,
if
runas_opts
:
# priv user defaults to root later on to enable detecting when this option was given here
parser
.
add_option
(
'-K'
,
'--ask-sudo-pass'
,
default
=
False
,
dest
=
'ask_sudo_pass'
,
action
=
'store_true'
,
parser
.
add_option
(
'-K'
,
'--ask-sudo-pass'
,
default
=
constants
.
DEFAULT_ASK_SUDO_PASS
,
dest
=
'ask_sudo_pass'
,
action
=
'store_true'
,
help
=
'ask for sudo password (deprecated, use become)'
)
parser
.
add_option
(
'--ask-su-pass'
,
default
=
False
,
dest
=
'ask_su_pass'
,
action
=
'store_true'
,
parser
.
add_option
(
'--ask-su-pass'
,
default
=
constants
.
DEFAULT_ASK_SU_PASS
,
dest
=
'ask_su_pass'
,
action
=
'store_true'
,
help
=
'ask for su password (deprecated, use become)'
)
parser
.
add_option
(
"-s"
,
"--sudo"
,
default
=
constants
.
DEFAULT_SUDO
,
action
=
"store_true"
,
dest
=
'sudo'
,
help
=
"run operations with sudo (nopasswd) (deprecated, use become)"
)
...
...
v2/ansible/cli/__init__.py
View file @
17e65b45
...
...
@@ -245,9 +245,9 @@ class CLI(object):
if
runas_opts
:
# priv user defaults to root later on to enable detecting when this option was given here
parser
.
add_option
(
'-K'
,
'--ask-sudo-pass'
,
default
=
False
,
dest
=
'ask_sudo_pass'
,
action
=
'store_true'
,
parser
.
add_option
(
'-K'
,
'--ask-sudo-pass'
,
default
=
C
.
DEFAULT_ASK_SUDO_PASS
,
dest
=
'ask_sudo_pass'
,
action
=
'store_true'
,
help
=
'ask for sudo password (deprecated, use become)'
)
parser
.
add_option
(
'--ask-su-pass'
,
default
=
False
,
dest
=
'ask_su_pass'
,
action
=
'store_true'
,
parser
.
add_option
(
'--ask-su-pass'
,
default
=
C
.
DEFAULT_ASK_SU_PASS
,
dest
=
'ask_su_pass'
,
action
=
'store_true'
,
help
=
'ask for su password (deprecated, use become)'
)
parser
.
add_option
(
"-s"
,
"--sudo"
,
default
=
C
.
DEFAULT_SUDO
,
action
=
"store_true"
,
dest
=
'sudo'
,
help
=
"run operations with sudo (nopasswd) (deprecated, use become)"
)
...
...
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