How do I get the display.debug() output when I am running molecule tests?
I thought
$ molecule converge – -vvvv
Or
ANSIBLE_DEBUG=True molecule converge – -vvvv
Neither seem to work.
How do I get the display.debug() output when I am running molecule tests?
I thought
$ molecule converge – -vvvv
Or
ANSIBLE_DEBUG=True molecule converge – -vvvv
Neither seem to work.
I set the MOLECULE_VERBOSITY
env var to a number to match the number of -v
’s one would use with ansible-playbook
for verbose output.
The display.debug() inside the ansible-core python code. For example in ansible/plugin/action/__init__.py:__low_level_execute_command()
there is
display.debug("_low_level_execute_command(): starting")
I have tried
display = Display(verbosity=2)
and
export ANSIBLE_DEBUG=1
And running with -vvv
and -vvvv
and put C.LOG_VERBOSITY = 2
into the module, editing ansible/utils/display.py:Display()
hard coding in the verbosity
def __init__(self, verbosity: int = 3) -> None:
None of it has worked.
Have you tried setting the MOLECULE_VERBOSITY
environmental variable to a number that matches the number of v
’s you would use with ansible-playbook
, for example:
export MOLECULE_VERBOSITY=3
It doesn’t appear to be very well documented, but this is the way to do it AFAIK:
But perhaps I have failed to understand your question?