diff --git a/ansible/deploy.yaml b/ansible/deploy.yaml index 6206382..f75d7b7 100644 --- a/ansible/deploy.yaml +++ b/ansible/deploy.yaml @@ -57,3 +57,11 @@ ansible.builtin.shell: cmd: nohup /home/webapps/.local/bin/uv run streamlit run Home.py --server.port=8501 --server.address=0.0.0.0 --server.headless=true --server.enableCORS=false & chdir: ~/motief + + - name: wait for streamlit to be ready + ansible.builtin.uri: + url: http://127.0.0.1:8501/_stcore/health + method: GET + status_code: 200 + retries: 30 + delay: 2