Hi,
As requested in https://github.com/ansible/ansible/issues/3737 I’m bringing this topic to the mailing list.
A simple custom facts module and an associated playbook https://gist.github.com/gnosek/6139435 end up with an empty dictionary, as seen in the debug output. If I run ansible-playbook with -v (or just call ansible host -m environment), I can see the nested dictionary returned correctly, just like with the default facts module (-m setup).
Any help appreciated.
Best regards,
Grzegorz Nosek