Report this

What is the reason for this report?

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

Posted on September 26, 2019

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.