|
|
|
@ -34,8 +34,6 @@ def main(args):
|
|
|
|
# create parser for CLI options
|
|
|
|
# create parser for CLI options
|
|
|
|
usage = "%prog playbook.yml"
|
|
|
|
usage = "%prog playbook.yml"
|
|
|
|
parser = utils.base_parser(constants=C, usage=usage, connect_opts=True, runas_opts=True)
|
|
|
|
parser = utils.base_parser(constants=C, usage=usage, connect_opts=True, runas_opts=True)
|
|
|
|
parser.add_option('-e', '--extra-vars', dest='extra_vars',
|
|
|
|
|
|
|
|
help='arguments to pass to the inventory script')
|
|
|
|
|
|
|
|
parser.add_option('-O', '--override-hosts', dest="override_hosts", default=None,
|
|
|
|
parser.add_option('-O', '--override-hosts', dest="override_hosts", default=None,
|
|
|
|
help="run playbook against these hosts regardless of inventory settings")
|
|
|
|
help="run playbook against these hosts regardless of inventory settings")
|
|
|
|
|
|
|
|
|
|
|
|
@ -67,7 +65,6 @@ def main(args):
|
|
|
|
module_path=options.module_path,
|
|
|
|
module_path=options.module_path,
|
|
|
|
host_list=options.inventory,
|
|
|
|
host_list=options.inventory,
|
|
|
|
override_hosts=override_hosts,
|
|
|
|
override_hosts=override_hosts,
|
|
|
|
extra_vars=options.extra_vars,
|
|
|
|
|
|
|
|
forks=options.forks,
|
|
|
|
forks=options.forks,
|
|
|
|
debug=options.debug,
|
|
|
|
debug=options.debug,
|
|
|
|
verbose=True,
|
|
|
|
verbose=True,
|
|
|
|
|