diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cluster | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/cluster b/bin/cluster index 720dd230c..fbbffadc9 100755 --- a/bin/cluster +++ b/bin/cluster @@ -184,6 +184,9 @@ class Cluster(object): verbose, inventory, ansible_env, playbook ) + if args.profile: + command = 'ANSIBLE_CALLBACK_PLUGINS=ansible-profile/callback_plugins ' + command + if args.verbose > 1: command = 'time {}'.format(command) @@ -240,6 +243,9 @@ if __name__ == '__main__': meta_parser.add_argument('-o', '--option', action='append', help='options') + meta_parser.add_argument('-p', '--profile', action='store_true', + help='Enable playbook profiling') + action_parser = parser.add_subparsers(dest='action', title='actions', description='Choose from valid actions') |