Hello,
I’m trying to create a python ansible module (using AnsibleModule), but I would like to reuse code that I already have in another python module without copy-pasting it in my ansible module. If I simply ‘import’ my custom python module, the ansible module fails to run as my python module is not available on the remote hosts (and I would like to avoid installing it).
Is there a way to split my ansible module code into several python modules and import them without having to pre-install those python modules on the remote hosts?
Thanks!