Generating a personal access token

For our playbook to be able to be able to launch a Droplet in our DigitalOcean account, we will need to generate a personal access token to interact with the DigitalOcean API. To do this, click on the API link, which can be found in the menu at the top of the DigitalOcean web-based control panel.

Clicking on the Generate New Token button will open the following dialog box:

As you can see, I have named my token Ansible so it can be easily identified. Clicking the Generate Token button will create a token; it will only be displayed once so please make sure you make a note of it.

Anyone who has a copy of your ...

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.