Import to_uuid filter in a custom module

Hi all.

I’m trying to import the to_uuid() filter function from plugins/filter/core.py to be used in a custom module I’m developing. Looked at Ansible documentation and around other sites but couldn’t find an answer. Does anybody can help?

Hi,

if you mean an Ansible Python module, the answer is you can't. Modules
can only import from module_utils, and not from plugins or any other
part of Ansible

Cheers,
Felix