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.