Issue
I am a new ansible user and I'm trying to run my flask application. Firstly, I would like to set the 'FLASK_APP' environment variable then use the command 'flask run'. In the purpose of doing this, my ansible tasks looks like this:
- name: install flask with pip
pip: name=flask
- name: set environnement
shell: "export FLASK_APP=/var/www/main.py"
- name: start flask
shell: "flask run"
Solution
I found a pretty good article on that subject. You just have to follow it and then you could run a flask application with ansible. here is the link : https://www.kevinlondon.com/2016/09/19/devops-from-scratch-pt-1.html
Answered By - Kevin Vincent
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.