That won't work as modules can only rely on code in themselves and module_utils, this is because they are designed for remote execution so Ansible creates a 'package' to deliver on the remote host and execute. It is not feasable to follow any/all imports of code as you can end up with something unusable, hence the limitation to only depend on code in module_utils/. https://docs.ansible.com/ansible/latest/reference_appendices/module_utils.html
-- ---------- 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/CACVha7dTe9sh6ndknN%2BjXJjm8u2GndCDgVkGnbfEWKqEnpCXKg%40mail.gmail.com.