Ansible Deployment for Estmator
Collect Files
- clone ansible deployment repo
- get all the secret files
- put secret files into same directory as
deploy_django.yml
Setup Ansible
pip install ansible(globally)pip install boto(in virtualenv)ansible-galaxy install jdauphant.nginx
Use Amazon AWS Console to launch a new EC2 instance
- Instance Type:
t2.micro- Specifics probably don't matter, but the process has been tested on this setup
- Ubuntu:
ubuntu-trusty-14.04-amd64-server-20150325 - AMI:
ami-5189a661
- Tags: define a tag for the instance so Ansible knows which instance(s) to target
- key:
role - value:
estmator
- key:
- Use your normal security groups, allowing ssh, http, psql
Deploy!
ansible-playbook -i plugins/inventory/ deploy_django.ymlyesto accept fingerprint