Restructure update-frontend-prod
parent
c694c87766
commit
cfe1c35295
|
@ -1,32 +1,4 @@
|
||||||
- hosts: cce_frontend_prod
|
- hosts: cce_frontend_prod
|
||||||
tasks:
|
tasks:
|
||||||
|
- include_role:
|
||||||
- name: Bring down the app if it is running (ignore error msg)
|
name: cce_frontend_prod
|
||||||
become: true
|
|
||||||
ignore_errors: true
|
|
||||||
command: "systemctl stop cce-search-frontend"
|
|
||||||
|
|
||||||
- name: Pull from GitHub
|
|
||||||
git:
|
|
||||||
accept_hostkey: true
|
|
||||||
force: true
|
|
||||||
update: true
|
|
||||||
repo: "{{ frontend_git_repo }}"
|
|
||||||
dest: "{{ frontend_project_path }}"
|
|
||||||
version: "{{ frontend_git_branch }}"
|
|
||||||
|
|
||||||
- name: Clear venv if it exists (ignore error msg)
|
|
||||||
ignore_errors: true
|
|
||||||
command: "pipenv --rm"
|
|
||||||
args:
|
|
||||||
chdir: "{{ frontend_project_path }}"
|
|
||||||
|
|
||||||
- name: Rebuild venv (ignore error msg)
|
|
||||||
ignore_errors: true
|
|
||||||
command: "pipenv install"
|
|
||||||
args:
|
|
||||||
chdir: "{{ frontend_project_path }}"
|
|
||||||
|
|
||||||
- name: Launch app
|
|
||||||
become: true
|
|
||||||
command: "systemctl start cce-search-frontend"
|
|
Loading…
Reference in New Issue