https://github.com/nylas/ansible-flask-example
Example using ansible-test and wrapper roles to implement a simple flask webapp
https://github.com/nylas/ansible-flask-example
Last synced: 6 months ago
JSON representation
Example using ansible-test and wrapper roles to implement a simple flask webapp
- Host: GitHub
- URL: https://github.com/nylas/ansible-flask-example
- Owner: nylas
- Created: 2015-05-28T22:37:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T07:13:36.000Z (over 5 years ago)
- Last Synced: 2025-07-02T02:38:46.031Z (6 months ago)
- Language: Python
- Size: 89.8 KB
- Stars: 24
- Watchers: 52
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Example Ansible Automation for flask app
========================================
This repository is an example that shows how to use ansible-test. In addition, it is written in the style of using wrapper roles. For more information, see our blog post at: LINK HERE
Getting Started
---------------
To get started testing with this repository, run:
.. code-block:: bash
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
Testing
-------
To test locally with ansible-test, you must have docker installed locally. If you are on Mac OSX, I reccomend you use boot2docker to setup docker.
.. code-block:: bash
$ ansible-test app
The above command will test the app role in a docker container. Once the automation is done, it will drop you into a shell on the container so you can inspect the resulting configuration.