Aplyca.deployab
Deploy A/B with Ansible
Ansible
- Read how to use the Ansible provisioner in README.md of each role.
- To know more about Ansible: http://www.ansible.com
Dependencies
Install the role dependencies using Ansible Galaxy
ansible-galaxy install -r dependencies.yml
Deploy environment
Release to Prod:
ansible-playbook -i inventories/local playbooks.yml --extra-vars "@tests/custom.yml"
Script:
./deploy.py -ea -v1.0.0
Custom settings
In order to use your own custom settings, use the "tests/custom.yml" file, you can override any variable used in the playbooks and roles.
ansible-playbook -i inventories/local playbooks.yml --extra-vars "@tests/custom.yml"
By default the custom.yml file is ignored in git, be mindful to not add to version control your custom files or info.
Inventory
See the invetories folders to know the available inventories
Use the "inventories/custom" to place your custom inventory.
Tests
ansible-playbook -i inventories/local tests/playbooks.yml
Version control
- Use git to push/push all your changes.
