Devops
A bunch of ansible playbooks to provision and configure digital ocean droplets
Installation
-
pip install -r requirements.txt
-
add your DigitalOcean API key as an environment variable:
export DO_API_KEY=<your API key here>
-
setup
instances.yml
with your droplet details. Seeprovisioners/digitalocean.yml
for variables. -
Add
deploy_user_passwd
toinstances.yml
. This is used to create a user on new nodes and can be set to any encrypted password. -
run
ansible-playbook webservers.yml
to create your droplets!