Hm, that's strange.
Previously, my method's signature was:
def run(self, terms, inject=None, **kwargs):
I'm no python guy and I really don't know what this 'kwargs' means but I think it may be related to named parameters.
The above signature worked until I updated ansible yesterday to the current master.
If I change the signature to this:
def run(self, terms, variables=None, **kwargs):
the variables parameter is set accordingly but kwargs no longer has a key 'variables'.
So, I think this parameter was renamed from 'inject' to 'variables' some time ago, or the method caller changed from positional parameters to named parameters, I don't know.
However, the facts are now accessible through "variables['vars']" which is fine for me.
Thanks again for your help which pointed me to the right direction.