- Add id_rsa.pub key to a node(s) into /root/.ssh/authorized_keys to have root access via ssh from your local machine
- Adjust settings in hosts and group_vars/* configs if needed
- Initially you will need a database dump in /files/db/prod_init.pgsql created by:
pg_dump --no-password --format=c -U {{ db_user }} {{ db_name }} > prod_init.pgsql
Further dev and preprod will search dumps in /backup/day/{{ production_db_name }}.pgsql - Run
ansible-playbook deploy_dev.yml
from the directory that contains ansible.cfg to deploy site.dev - Run
ansible-playbook deploy_preprod.yml
to deploy preprod-site.dev - Run
ansible-playbook deploy_prod.yml
to deploy prod-site.dev or site.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Ansible based deployment system of Django
License
mrbinwin/django-ansible
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Ansible based deployment system of Django
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published