C.DEFAULT_DEBUG

I see C.DEFAULT_DEBUG in the code how do I turn this on?

Only find it in 2 locations

lib/ansible/utils/debug.py
lib/ansible/utils/display.py

So no code on where it gets set? Introspection?

ansible-playbook: error: no such option: --debug

I’m just setting it inside the debugger.

Hi Bob,

C is defined in lib/ansible/constants.py and they get populated from the ansible.cfg.

In v2 you can find it here: https://github.com/ansible/ansible/blob/devel/lib/ansible/constants.py#L115

Andrea

Oh, I’m dumb. I was looking for C.DEFAULT_DEBUG. Thanks for the info and link.