title: How to run flask app with ansible
body: <p>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:</p>
  
  <pre><code>- 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"
  </code></pre>