Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enter the Digital Ocean token?

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?

like image 516
softshipper Avatar asked Dec 10 '25 22:12

softshipper


1 Answers

In the very next paragraph under the one you linked to it says:

The --access-token flag or DIGITALOCEAN_ACCESS_TOKEN variable are acknowledged

so presumably:

    - command: doctl compute droplet list
      environment:
        DIGITALOCEAN_ACCESS_TOKEN: your_DO_token
like image 77
mdaniel Avatar answered Dec 14 '25 07:12

mdaniel