With this patch it's possible to specify a static filename for the cache files. This is handy if the dynamic inventory script is used in Ansible Tower. Every time Ansible Tower updates the dynamic inventory it creates and executes a generated temporary script filename. Because it's different every time you get different cache files and can't use the cache.
I added the filename parameter to the the configuration file under the cache section. If the filename parameter isn't specified in the configuration file it uses the original filename.
Maybe this patch is also useful for other users? Feel free to merge it.
With this patch it's possible to specify a static filename for the cache files. This is handy if the dynamic inventory script is used in Ansible Tower. Every time Ansible Tower updates the dynamic inventory it creates and executes a generated temporary script filename. Because it's different every time you get different cache files and can't use the cache.
I added the filename parameter to the the configuration file under the cache section. If the filename parameter isn't specified in the configuration file it uses the original filename.
Maybe this patch is also useful for other users? Feel free to merge it.