--- - name: deploy motief application hosts: sgeboers.nl remote_user: webapps tasks: - name: ensure git.sgeboers.nl is in known_hosts ansible.builtin.known_hosts: name: git.sgeboers.nl key: "{{ lookup('pipe', 'ssh-keyscan git.sgeboers.nl') }}" state: present - name: pull latest code ansible.builtin.git: repo: git@git.sgeboers.nl:sgeboers/motief.git dest: ~/motief clone: yes force: yes - name: sync dependencies with uv ansible.builtin.shell: cmd: uv sync chdir: ~/motief - name: stop existing streamlit process ansible.builtin.shell: cmd: pkill -f "streamlit run Home.py" || true - name: start streamlit ansible.builtin.shell: cmd: nohup uv run streamlit run Home.py --server.port=8501 --server.address=0.0.0.0 & chdir: ~/motief