https://github.com/psmb/ansible-deploy
Ansible deploy script for our websites at SFI.ru
https://github.com/psmb/ansible-deploy
Last synced: 4 months ago
JSON representation
Ansible deploy script for our websites at SFI.ru
- Host: GitHub
- URL: https://github.com/psmb/ansible-deploy
- Owner: psmb
- Created: 2015-11-23T21:25:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-20T12:59:25.000Z (over 7 years ago)
- Last Synced: 2025-01-03T22:48:35.117Z (5 months ago)
- Homepage:
- Size: 22.5 KB
- Stars: 10
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**Take heed: this package was originally meant for deploying our websites at SFI.ru. Take inspiration, but don't blindly copy!**
## Usage example
`ansible-playbook deploy.yml --extra-vars "REPOSITORY_URL=https://github.com/sfi-ru/ErmDistr HOST=your_target_host PORT=1234"`
## Environment Variables
|env_var|description|
|---|---|
|`REPOSITORY_URL`|Url of your git repository, possibly including github auth token for private repos|
|`HOST`|Host name of a target machine|
|`VERSION`|Git repository branch, commit SHA or release tag, defaults to master|
|`PORT`|Ssh port number on a target machine|
|`PROTOCOL`|Optional, defaults to `http`. Protocol to be used for testing.|
|`ES`|Optional, when set to true would automatically rebuild ES index on deployment, when one of NodeTypes.*.yaml have changed|## Credit
Thanks to [Rens Admiraal](https://www.simplyadmire.com/) for initial inspiration!