Hi,
> ansible requires every module to be licensed under GPLv3 and
> mod_utils under BSD.
that is not correct. While the ansible-test sanity checks look for such
copyright notices, you can also decide to ignore these sanity check
failures. Especially module_utils are often also GPLv3+ licensed in
collections.
What you have to look out for are non-module plugins. These have to
import GPLv3+ licensed code from ansible-core. For what this means
exactly you have to ask a lawyer (I'm not one :) ), but usually it
means that your code also has to be GPLv3+ licensed.
This is not the case for modules, so there you can use other licenses.
For module utils it depends on whether you import them only from
modules, or also from plugins. If you import them from plugins, you
probably have to talk to a lawyer if you want to be on the safe side...
Hope this helps a bit,
Felix