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

September 26, 2019 115 views
Automated Setups Logging DigitalOcean Ansible API

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

Thanks.

1 Answer

Hello,

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:

https://www.virtualbox.org/

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:

https://www.vagrantup.com/docs/provisioning/ansible_intro.html

Hope that this helps!
Regards,
Bobby

Have another answer? Share your knowledge.