-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from civier/civier-patch-9
Create install_and_run_sovabids.yaml
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 & | ||
|