I have python module collect single system inventory info using print statement and I'd like to use Ansible to collect the same information against all inventory hosts.
I know Ansible doesn't like custom module to do print and I can return some JSON fields using module.exit_json call. I can register the var and debug var['field'] in Ansible. Is this the right and only way to parse the python output on the console? How about I have multiple instances of prints in Python module and I don't want to exit back to ansible to get things printed out. My python call is on localhost BTW. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/52d38561-6b95-4ca3-8a32-0a8c8bfe13b8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
