Skip to content

sudokrew/ansible-project-playbook-seed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###Ansible Project Deployment Seed

####Installation

  1. 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

  1. Make the proper configuration settings in:
  • deploy/uat

  • deploy/staging

  • deploy/production

  • deploy/deploy-vars.yml

  1. Make any per instance deployment changes to deploy/deploy.yml

  2. 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.

About

Drop in per project ansible playbook for managing deployments via NPM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages