mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 13:21:25 -07:00
Make /bin/ansible use the common options from lib/ansible/scripts
DRY!
This commit is contained in:
parent
6fcce9a97e
commit
01e5da6d0b
2 changed files with 15 additions and 38 deletions
|
@ -26,6 +26,8 @@ def base_ans_parser():
|
|||
help="path to module library", default=C.DEFAULT_MODULE_PATH)
|
||||
parser.add_option('-u', '--user', default=C.DEFAULT_REMOTE_USER,
|
||||
dest='remote_user', help='set the default username')
|
||||
parser.add_option("-p", "--pattern", dest="pattern",
|
||||
help="hostname pattern", default=C.DEFAULT_PATTERN)
|
||||
parser.add_option("-P", "--askpass", default=False, action="store_true",
|
||||
help="ask the user to input the ssh password for connecting")
|
||||
parser.add_option('-f','--forks', dest='forks', default=C.DEFAULT_FORKS, type='int',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue