because ansible expects a single JSON document as a response on STDOUT of the module .. if you do print statements .. you are probably breaking that requirement, hence the error.
-- ---------- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/CACVha7fUS2BVkYJLZvi%3DnQa%3D4uPyPQKyvq%2Bnp%3D7jNW9hmD%3DTig%40mail.gmail.com.