mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
--become-method should not be restricted (#55670)
This commit is contained in:
parent
3fd27f0cac
commit
863340ee26
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ def add_runas_options(parser):
|
||||||
# consolidated privilege escalation (become)
|
# consolidated privilege escalation (become)
|
||||||
runas_group.add_argument("-b", "--become", default=C.DEFAULT_BECOME, action="store_true", dest='become',
|
runas_group.add_argument("-b", "--become", default=C.DEFAULT_BECOME, action="store_true", dest='become',
|
||||||
help="run operations with become (does not imply password prompting)")
|
help="run operations with become (does not imply password prompting)")
|
||||||
runas_group.add_argument('--become-method', dest='become_method', default=C.DEFAULT_BECOME_METHOD, choices=C.BECOME_METHODS,
|
runas_group.add_argument('--become-method', dest='become_method', default=C.DEFAULT_BECOME_METHOD,
|
||||||
help="privilege escalation method to use (default=%(default)s), use "
|
help="privilege escalation method to use (default=%(default)s), use "
|
||||||
"`ansible-doc -t become -l` to list valid choices.")
|
"`ansible-doc -t become -l` to list valid choices.")
|
||||||
runas_group.add_argument('--become-user', default=None, dest='become_user', type=str,
|
runas_group.add_argument('--become-user', default=None, dest='become_user', type=str,
|
||||||
|
|
Loading…
Reference in a new issue