https://github.com/editd/ansible-git_application
A role for deploying applications from github
https://github.com/editd/ansible-git_application
Last synced: over 1 year ago
JSON representation
A role for deploying applications from github
- Host: GitHub
- URL: https://github.com/editd/ansible-git_application
- Owner: EDITD
- License: mit
- Created: 2014-02-24T16:57:17.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-09-26T13:59:20.000Z (almost 10 years ago)
- Last Synced: 2024-04-16T06:23:23.449Z (over 2 years ago)
- Size: 13.7 KB
- Stars: 3
- Watchers: 41
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ansible-git_application
=======================
A role for deploying applications from github
Actions
-------
- Installs git
- Ensures an `application user` exists
- Ensures a `deploy_to` directory exists
- Pulls the code to the `deploy_to` directory, with the ref you want.
Requirements
------------
- SSH agent forwarding is enabled (for private github repos)
Role Variables
--------------
Below are all the variables used by the role, together an explanation, and their defaults.
- `git_application_deploy_to`: The directory to deploy to - `/opt/myapplication`
- `git_application_repo`: The URL of the repo - `git@github.com:mycompany/myapplication.git`
- `git_application_version`: The branch / tag to deploy - `master`
- `git_application_user`: The user that will own the code - `myuser`
- `git_application_group`: The group the user will belong to - `myusergroup`
- `git_application_pull_from_git`: Set to no if you want to skip this role entirely - `yes`
License
-------
MIT