Question
How do I create a smallest droplet which costs $5/mo through ansible?
I use digital ocean droplet module within my playbook
e.g.
- name: Create droplet
digital_ocean_droplet:
state: present
name: "test-droplet"
region: "fra1"
size: "1gb"
# disk: "25"
image: "ubuntu-20-04-x64"
unique_name: yes
oauth_token: "{{ do_api_token }}"
After running it, I have got a droplet with 1 GB / 1 CPU and 30 GB SSD disk which costs $10/mo. Actually, I don’t see an option to specify disk size in https://developers.digitalocean.com/documentation/v2/#create-a-new-droplet
Is it possible to have the cheapest one created by ansible’s playbook?
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.
×