mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-19 07:11:25 +00:00
Add --debug option to ansible-test.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user