Update playbook to comply with new service-based deployment
parent
6a23f3f277
commit
ed94da9286
|
@ -2,8 +2,9 @@
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: Bring down the app if it is running (ignore error msg)
|
- name: Bring down the app if it is running (ignore error msg)
|
||||||
command: "killall flask"
|
become: true
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
command: "systemctl stop cce-search-frontend"
|
||||||
|
|
||||||
- name: Pull from GitHub
|
- name: Pull from GitHub
|
||||||
git:
|
git:
|
||||||
|
@ -31,8 +32,6 @@
|
||||||
when:
|
when:
|
||||||
- ('No virtualenv' in pipenv_venv_check_cmd.stderr)
|
- ('No virtualenv' in pipenv_venv_check_cmd.stderr)
|
||||||
|
|
||||||
# Source: https://ansibledaily.com/execute-detached-process-with-ansible/
|
|
||||||
- name: Launch app
|
- name: Launch app
|
||||||
shell: "(nohup pipenv run flask run </dev/null >/dev/null 2>&1 &)"
|
become: true
|
||||||
args:
|
command: "systemctl start cce-search-frontend"
|
||||||
chdir: "{{ frontend_project_path }}"
|
|
Loading…
Reference in New Issue