Add `--debug` option to `ansible-test`.

pull/20959/head
Matt Clay 9 years ago
parent 67646a0771
commit 309a37de86

@ -32,4 +32,7 @@ def ansible_environment(args):
env.update(ansible)
if args.debug:
env.update(dict(ANSIBLE_DEBUG='true'))
return env

@ -416,6 +416,7 @@ class CommonConfig(object):
self.color = args.color # type: bool
self.explain = args.explain # type: bool
self.verbosity = args.verbosity # type: int
self.debug = args.debug # type: bool
class EnvironmentConfig(CommonConfig):

@ -132,6 +132,10 @@ def parse_args():
const='yes',
default='auto')
common.add_argument('--debug',
action='store_true',
help='run ansible commands in debug mode')
test = argparse.ArgumentParser(add_help=False, parents=[common])
test.add_argument('include',

Loading…
Cancel
Save