Restructure update-frontend-prod

master
Dylan DiGeronimo 2020-05-09 15:36:09 -04:00
parent c694c87766
commit cfe1c35295
1 changed files with 2 additions and 30 deletions

View File

@ -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"