Skip to content

Personal Ansible playbooks to provision resources and deploy on AWS, GCP and Heroku

License

Notifications You must be signed in to change notification settings

suddi/playbooks

Repository files navigation

playbooks

CircleCI codecov Codacy Badge David David license

codecov

Ansible infrastructure-as-code playbooks for publishing packages to NPM, PyPy, setting up servers and deployment to AWS, GCP and Heroku

Installation

Prerequisities

  • python
  • pip
  • nvm
  • npm
  • node
pip install --requirement requirements.txt --requirement test_requirements.txt

npm install

Usage

ansible-playbook <PLAYBOOK_NAME>

Sensitive files handling

ansible-vault and the true inventory.ini files are maintained in S3

To download sensitive-files:

ansible-playbook plays/sensitive_files/download.yml

To upload sensitive-files:

ansible-playbook plays/sensitive_files/upload.yml

Protecting inventory.ini

In order to ensure that changes to inventory.ini does not get accidently committed:

git update-index --assume-unchanged inventory.ini

If you need to revert this action:

git update-index --no-assume-unchanged inventory.ini