Skip to content

Commit

Permalink
Merge pull request #70 from civier/civier-patch-9
Browse files Browse the repository at this point in the history
Create install_and_run_sovabids.yaml
  • Loading branch information
civier authored Jul 28, 2024
2 parents 718c79b + ba3d25b commit 105a680
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions ansible/install_and_run_sovabids.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
- name: install SOVABIDS
hosts: myhosts
tasks:
- name: Ping my hosts
ansible.builtin.ping:

- name: Print message
ansible.builtin.debug:
msg: Hello world

- name: Install python3 as python
ansible.builtin.apt:
name: python-is-python3
update-cache: true
become: true

- name: Update repositories cache and install "pip" package
ansible.builtin.apt:
name: pip
update-cache: true
become: true

- name: Clone the sovabids repo
ansible.builtin.git:
repo: https://github.com/yjmantilla/sovabids.git
dest: src/sovabids

- name: Install sovabids requirements
ansible.builtin.pip:
requirements: ~/src/sovabids/requirements-gui.txt
chdir: ~/src/sovabids

- name: Test sovabids
ansible.builtin.pip:
name: pytest

- name: Run flask
ansible.builtin.shell: cd /; nohup python ~/src/sovabids/front/app/app.py 1>/dev/null 2>&1 &

0 comments on commit 105a680

Please sign in to comment.