I have DigitalOcean tool installed and would like to initialze it. On the https://github.com/digitalocean/doctl#authenticating-with-digitalocean,
it describes as follows, enter doctl auth init and it will prompt the text:
DigitalOcean access token: your_DO_token
Is there a way to enter the token via Ansible?
In the very next paragraph under the one you linked to it says:
The
--access-tokenflag orDIGITALOCEAN_ACCESS_TOKENvariable are acknowledged
so presumably:
- command: doctl compute droplet list
environment:
DIGITALOCEAN_ACCESS_TOKEN: your_DO_token
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With