Add --debug option to ansible-playbook.
This prints remote module stderr on local stderr.
This commit is contained in:
parent
74ae4b29ad
commit
d9a16a3d67
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,8 @@ def main(args):
|
||||||
# create parser for CLI options
|
# create parser for CLI options
|
||||||
parser = OptionParser()
|
parser = OptionParser()
|
||||||
parser.usage = "ans-playbook playbook.yml ..."
|
parser.usage = "ans-playbook playbook.yml ..."
|
||||||
|
parser.add_option('-d','--debug', default=False, action="store_true",
|
||||||
|
help='enable standard error debugging of modules.')
|
||||||
parser.add_option('-f','--forks', dest='forks', default=C.DEFAULT_FORKS, type='int',
|
parser.add_option('-f','--forks', dest='forks', default=C.DEFAULT_FORKS, type='int',
|
||||||
help='set the number of forks to start up')
|
help='set the number of forks to start up')
|
||||||
parser.add_option("-i", "--inventory-file", dest="inventory",
|
parser.add_option("-i", "--inventory-file", dest="inventory",
|
||||||
|
@ -76,6 +78,7 @@ def main(args):
|
||||||
extra_vars=options.extra_vars,
|
extra_vars=options.extra_vars,
|
||||||
module_path=options.module_path,
|
module_path=options.module_path,
|
||||||
forks=options.forks,
|
forks=options.forks,
|
||||||
|
debug=options.debug,
|
||||||
verbose=True,
|
verbose=True,
|
||||||
remote_pass=sshpass,
|
remote_pass=sshpass,
|
||||||
remote_port=options.remote_port,
|
remote_port=options.remote_port,
|
||||||
|
|
Loading…
Reference in a new issue