All Projects → nylas → ansible-flask-example

nylas / ansible-flask-example

Licence: other
Example using ansible-test and wrapper roles to implement a simple flask webapp

Programming Languages

python
139335 projects - #7 most used programming language

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:

$ 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.

$ 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].