From d9a16a3d676bfeddf15b299569cf06bc20eb7a01 Mon Sep 17 00:00:00 2001 From: Jeroen Hoekx Date: Fri, 30 Mar 2012 22:25:16 +0200 Subject: [PATCH] Add --debug option to ansible-playbook. This prints remote module stderr on local stderr. --- bin/ansible-playbook | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/ansible-playbook b/bin/ansible-playbook index a4071d5e573..f33f08855d8 100755 --- a/bin/ansible-playbook +++ b/bin/ansible-playbook @@ -33,6 +33,8 @@ def main(args): # create parser for CLI options parser = OptionParser() 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', help='set the number of forks to start up') parser.add_option("-i", "--inventory-file", dest="inventory", @@ -76,6 +78,7 @@ def main(args): extra_vars=options.extra_vars, module_path=options.module_path, forks=options.forks, + debug=options.debug, verbose=True, remote_pass=sshpass, remote_port=options.remote_port,