Hi,
I’m trying to view debug statements within individual modules. For example, ec2_asg.py
(https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/amazon/ec2_asg.py) has debug statements describing when certain actions are performed. However, I’m finding it difficult to view these statements on my local machine.
I’ve tried the following:
-
Running the module with an
args.json
file, using the template described here: https://docs.ansible.com/ansible/2.5/dev_guide/developing_modules_general.html#local-direct-module-testing -
Running the module and playbook with ANSIBLE_LOG_PATH and ANSIBLE_DEBUG set properly.
-
This has more output, but nothing related to the actions performed during the module’s execution.- Running the
./hacking/test-module
executable from Ansible’s source. -
Inspecting macOS’s
/var/log/system.log
. There was nothing logged here, though according to the AnsibleModule class, there should be output: https://github.com/ansible/ansible/blob/8cf6f56a0103c51e93de9e26ce1982ce4aeb7ba0/lib/ansible/module_utils/basic.py#L1845-L1850
Can anyone point me in the right direction for how we’re supposed to retrieve module debug output? Thanks! -
J