Re: [ansible-devel] Share data between lookup plugin instances

2022-08-03 Thread piete...@gmail.com
OK, thanks Brian ! Op woensdag 3 augustus 2022 om 15:11:13 UTC+2 schreef bc...@redhat.com: > There is no facility to do this, you would have to save/read a file > like the password lookup does. > Another option is to have a task that does the login and registers the > token into a variable (via r

Re: [ansible-devel] Share data between lookup plugin instances

2022-08-03 Thread Brian Coca
There is no facility to do this, you would have to save/read a file like the password lookup does. Another option is to have a task that does the login and registers the token into a variable (via register: or returning ansible_facts). FYI, each lookup does not have it's own python instance, but e