如何输入数字海洋令牌?

问题描述 投票:1回答:1

我已经安装了DigitalOcean工具,并希望对其进行初始化。在https://github.com/digitalocean/doctl#authenticating-with-digitalocean上,它的描述如下,输入doctl auth init,将提示文本:

DigitalOcean access token: your_DO_token  

是否可以通过Ansible输入令牌?

ansible ansible-2.x
1个回答
0
投票

very next paragraph under the one you linked to中说:

确认--access-token标志或DIGITALOCEAN_ACCESS_TOKEN变量

大概是:

- command: doctl compute droplet list
  environment:
    DIGITALOCEAN_ACCESS_TOKEN: your_DO_token
© www.soinside.com 2019 - 2024. All rights reserved.