How to automate DigitalOcean's droplet with ansible on ubuntu machine if I don't have an account on DO

Posted September 26, 2019 942 views
DigitalOceanAPIAnsibleLoggingAutomated Setups

I’m using an ubuntu 18.04 machine and I don’t have any DigitalOcean’s account right now but how can I create my very basic ubuntu 18.04 droplet using ansible on my local machine is that possible or not ?

give me a solution


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


On your local machine, you could use hypervisor like Oracle VirtualBox to manually create virtual machines/droplets. This would allow you to manually create your own Virtual Machines on your local machine. That way you will be able to have a Virtual Machine with Ubuntu installed.

For more information, you could check the official website at:

Or you could try using Virtualbox, Vagrant and Ansible to automate the whole process. With Vagrant you should be able to automatically spin up new VMs. I would recommend taking a look at the official Vagrant documentation here:

Hope that this helps!