From ee37e8f03f6a471bf1ca76eaaaa4773b2b1e3546 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 1 Oct 2018 11:24:27 -0400 Subject: [PATCH] Ansible publishes XUL build files Signed-off-by: Bill Erickson --- KCLS/admin-scripts/ansible/plays/deploy.yml | 41 ++++++++++++++++++++++++++ KCLS/admin-scripts/ansible/plays/startutil.yml | 2 +- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/KCLS/admin-scripts/ansible/plays/deploy.yml b/KCLS/admin-scripts/ansible/plays/deploy.yml index a65f1b0e3b..d47e6ed9af 100644 --- a/KCLS/admin-scripts/ansible/plays/deploy.yml +++ b/KCLS/admin-scripts/ansible/plays/deploy.yml @@ -99,6 +99,47 @@ - {dest: '{{eg_install_path}}/var/web/conify'} - {dest: '{{eg_install_path}}/var/web/opac'} - {dest: '{{eg_install_path}}/var/web/reports'} + - name: Create XUL builds directory + become: true + become_user: '{{opensrf_user}}' + file: + path: '{{eg_install_path}}/var/web/xul/builds' + state: directory + owner: '{{opensrf_user}}' + group: '{{opensrf_user}}' + - name: Copy XUL Build to builds Dir + become: true + become_user: '{{opensrf_user}}' + shell: cp -r {{repo_base}}/Evergreen/Open-ILS/xul/staff_client/build {{eg_install_path}}/var/web/xul/builds + - name: Remove XUL build/server + become: true + become_user: '{{opensrf_user}}' + file: + path: '{{eg_install_path}}/var/web/xul/builds/server' + state: absent + - name: Remove Previous XUL Build Zip File + become: true + become_user: '{{opensrf_user}}' + file: + path: '{{eg_install_path}}/var/web/xul/builds/current-client-build.zip' + state: absent + - name: Create XUL Build Zip File + become: true + become_user: '{{opensrf_user}}' + shell: cd {{eg_install_path}}/var/web/xul/builds && zip -rq {{eg_stamp_id}}.zip build + - name: Create Current XUL Build Symlink + become: true + become_user: '{{opensrf_user}}' + file: + state: link + src: '{{eg_install_path}}/var/web/xul/builds/{{eg_stamp_id}}.zip' + dest: '{{eg_install_path}}/var/web/xul/builds/current-client-build.zip' + - name: Remove XUL Build Dir + become: true + become_user: '{{opensrf_user}}' + file: + path: '{{eg_install_path}}/var/web/xul/builds/build' + state: absent - name: Create XUL Current Symlink become: true become_user: '{{opensrf_user}}' diff --git a/KCLS/admin-scripts/ansible/plays/startutil.yml b/KCLS/admin-scripts/ansible/plays/startutil.yml index d6f5707560..e41e32a482 100644 --- a/KCLS/admin-scripts/ansible/plays/startutil.yml +++ b/KCLS/admin-scripts/ansible/plays/startutil.yml @@ -32,5 +32,5 @@ poll: 0 async: 1 shell: 'cd {{eg_install_path}}/bin && ./edi_webrick.bash' - when: webrick_pid_status | failed + when: webrick_pid_status is failed -- 2.11.0