Make /bin/ansible use the common options from lib/ansible/scripts

DRY!
This commit is contained in:
Michael DeHaan 2012-02-28 01:33:22 -05:00
parent 6fcce9a97e
commit 01e5da6d0b
2 changed files with 15 additions and 38 deletions

View file

@ -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',