Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vitalk/ansible-flaskapp
Ansible recipe to deploy Flask application
https://github.com/vitalk/ansible-flaskapp
ansible deployment flask recipe
Last synced: 3 months ago
JSON representation
Ansible recipe to deploy Flask application
- Host: GitHub
- URL: https://github.com/vitalk/ansible-flaskapp
- Owner: vitalk
- Created: 2015-03-30T08:47:51.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-18T08:53:10.000Z (over 6 years ago)
- Last Synced: 2024-07-30T16:55:48.247Z (5 months ago)
- Topics: ansible, deployment, flask, recipe
- Homepage: https://galaxy.ansible.com/vitalk/flaskapp
- Size: 13.7 KB
- Stars: 8
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask app
Ansible recipe to deploy Flask application. This recipe does not trying to
define your production infrastructure and just:- Install required system packages to serve python application
- Run pre deploy hooks
- Checkout the latest source code
- Install required application dependencies via `pip`, `npm` (optional) and
`bower` (optional)
- Run post deploy hooks
- Copy custom application config to remote server.## Role Variables
| Option | Description |
|----------------------|------------------------------------------------------|
| `app_name` | The name of the application, uses to create application directory, e.g. should be a shorthand, lowercase and not contain any whitespaces, e.g. `app`. |
| `app_user` | The user to run application, e.g. `{{ app_name }}`. |
| `app_directory` | The directory to keep application source code, e.g. `/home/{{ app_user }}/{{ app_name }}`. |
| `app_log_directory` | The directory to keep application logs if any. |
| `app_requirements` | The path to application requirements, e.g. `{{ app_directory }}/requirements.txt`. |
| `app_repository` | The remote git repository to pull application code from, e.g. `ssh://[email protected]/vitalk/flaskapp.git`. |
| `app_version` | The version of the repository to checkout. This can be a full 40-character SHA1 hash, a branch or a tag name, e.g. `master`. |
| `app_environment` | The list of environment variables uses to run most of commands. |
| `app_pre_hooks` | The list of custom commands to run before deploy. These commands uses previously defined environment to run. |
| `app_post_hooks` | The list of custom commands to run after deploy. |
| `app_config` | The path to application config to use when launch application. |
| `app_packages` | The list of system packages required to build/run application. |
| `app_requires_npm` | Install `nodejs` and required package dependencies via `npm`? Nope. |
| `app_requires_bower` | Install required frontend dependencies via `bower`? Nope. |## License
Licensed under the [MIT license](http://mit-license.org/vitalk).
## Self-Promotion
Created by Vital Kudzelka.
Open [a GitHub issue](https://github.com/vitalk/ansible-flaskapp/issues) if
you have any suggestion or found a bug.