Hello,
I use ansible-playbook as source for my flow. Now I see a lot of verbose stuff. I want hide it but I couldn’t find:
playbook = params[“playbook”]
inventory = ansible.inventory.Inventory(hosts)
inventory.set_playbook_basedir(os.path.dirname(playbook))
stats = callbacks.AggregateStats()
playbook_cb = callbacks.PlaybookCallbacks(verbose=utils.VERBOSITY)
runner_cb = callbacks.PlaybookRunnerCallbacks(
stats, verbose=utils.VERBOSITY)
params[“inventory”] = inventory
params[“stats”] = stats
params[“callbacks”] = playbook_cb
params[“runner_callbacks”] = runner_cb
pb = ansible.playbook.PlayBook(**playbook_params)
pr = pb.run()
I tried to find in callbacks.py but my level of python is less to find answer
Regard.
PS:
Sorry for my English.