Hi all, I've written a lookup plugin that authenticates to some REST endpoint. Once authenticated a token is returned that can be reused for further REST calls.
Is there a way I can store the token someplace, so that the next invocation of the lookup plugin can access it and use it instead of authenticating with userid/pw again ? I tried to access the 'play' object to get its VariableManager, but I guess that's not accessible from a LookupPlugin. Then I tried to use pythons' os.environ to set a variable, but apparently each invocation of the lookup is done using a different python instance, hence not sharing their environments. Thanks for any help. Pieter. -- 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/cd961527-0b9e-4bfe-957d-2f3827f0602fn%40googlegroups.com.