This works, and the inventory is created and populated successfully.
Unfortunately, the account that I need to use has a password that is randomly changed to a new password every few hours. So after a few hours, this inventory stops working.
I can get the correct password with a lookup plugin, but I have been unable to find how you can add this lookup call to the inventory source. If I add a {{ lookup('myplugin', 'user') }} to the inventory, the password used is that literal text.
So how do I add a password that’s evaluated at run time to an inventory source?
So how do I add a password that’s evaluated at run time to an inventory source?
As the user of the plugin, you cannot, unless the plugin explicitly handles templating for that option. Some inventory plugins I know explicitly allow templating for certain fields such as username and password - but not all do.