###Ansible Project Deployment Seed
####Installation
- Clone this repo in your project root with the following command:
git clone git@github.com:sudokrew/ansible-project-playbook-seed.git deploy && rm -Rf deploy/.git
- Make the proper configuration settings in:
-
deploy/uat
-
deploy/staging
-
deploy/production
-
deploy/deploy-vars.yml
-
Make any per instance deployment changes to deploy/deploy.yml
-
Update the project package.json with the following key/value pairs replacing the project_name with the intended target in your inventory file
"scripts": {
.
.
"deploy:production": "ansible-playbook -i deploy/production deploy/deploy.yml --ask-sudo-pass --extra-vars='target=__project_name__'",
"deploy:staging": "ansible-playbook -i deploy/staging deploy/deploy.yml --ask-sudo-pass --extra-vars='target=__project_name__'",
"deploy:uat": "ansible-playbook -i deploy/uat deploy/deploy.yml --ask-sudo-pass --extra-vars='target=__project_name__'",
.
.
}
TODO: Split up provision and deployment tasks to different playbooks and npm tasks.