Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple script to get all the Ansible requirements for DigitalOcean
endpoints=(sizes regions images ssh_keys)
for i in "${endpoints[@]}"; do
url=`printf "" $i $DO_CLIENT_ID $DO_API_KEY`
curl $url | python -mjson.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment