We have a working ansible script which we use to configure a droplet after it is manually provisioned.
We are now planning to ditch manual process and automate creation and destruction of do instances using a python script. This is the workflow I have in mind.
The idea is to have fully automatic creation of instances, from a python script, with all software installed and all configuration done.
My question is how to do the step 3?
Thanks
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hello,
Can you please clarify on what changes exactly do you need to make?
Here’s the documentation regarding the Snapshots API functionality:
https://developers.digitalocean.com/documentation/v2/#snapshots
For example if you would like to create a volume snapshot you could just use this curl request:
The output that you would get should look something like this:
Hope that this helps! Bobby
Have you checked to apply the aci_config_snapshot module?