I have a Flask application that I would like to deploy and start using Ansible. I already have my program installed to install all the necessary dependencies, but I had problems getting Ansible to run my application. I used commandand shell, both of which launch the Flask application, but block Ansible from exiting, and Flask does not appear in its own terminal window, which makes it difficult to visually debug and see what Flask does.
tasks:
- command: python3 /home/user/Desktop/Flask/app.py
- shell: python3 /home/user/Desktop/Flask/app.py
Q: How can I run Ansible to run a Flask script in my terminal window?
source
share