Variables in digitalocean inventory plugin's filter & jinja template

Hi,

Is it possible to use environment variables, or user defined variables in the filters or jinja templates in the inventory plugin. If yes, please could you provide an example.

Thank you

Hello @ajprok. Welcome to the Ansible Forum!

It seems that the community.digitalocean.digitalocean inventory plugin is only available for templates for the oauth_token option.

oauth_token: '{{ lookup("pipe", "./get-do-token.sh") }}'

https://docs.ansible.com/ansible/latest/collections/community/digitalocean/digitalocean_inventory.html#examples

Thank you for the info. I hope the feature can be added to make the inventory more dynamic.

@ajprok

If you raise an issue as Feature request, someone possibly improve inventory plugin.