From 9243dece21d2aba36af52a5739acdea4eb1bfad5 Mon Sep 17 00:00:00 2001 From: mgoodrich Date: Thu, 25 May 2017 15:17:12 -0400 Subject: [PATCH] update to deploy custom version of bahmniapps --- playbooks/all.yml | 3 ++- playbooks/roles/bahmniapps/tasks/main.yml | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 playbooks/roles/bahmniapps/tasks/main.yml diff --git a/playbooks/all.yml b/playbooks/all.yml index 66d054d..5eec7bc 100644 --- a/playbooks/all.yml +++ b/playbooks/all.yml @@ -1,6 +1,7 @@ - hosts: bahmni-emr sudo: yes roles: - - { role: bahmni-endtb-batch } + - bahmni-endtb-batch + - bahmniapps tags: - bahmni-emr-customization diff --git a/playbooks/roles/bahmniapps/tasks/main.yml b/playbooks/roles/bahmniapps/tasks/main.yml new file mode 100644 index 0000000..ccf1d49 --- /dev/null +++ b/playbooks/roles/bahmniapps/tasks/main.yml @@ -0,0 +1,18 @@ +# Deploy custom build of bahmniapps +# turn this one or off by adding this role the "all.yml" file + +- name: Download bahmniapps from remote location as zip file + get_url: url=http://bamboo.pih-emr.org/bahmni-repo/endtb-bahmniapps-0.88-latest.zip dest=/tmp/bahmniapps.zip + +- name: Clear out existing bahmniapps content + command: "rm -fR /opt/bahmni-web/etc/bahmniapps/*" + +- name: Extract contents of zip file into bahmniapps directory + unarchive: src=/tmp/bahmniapps.zip dest=/opt/bahmni-web/etc/bahmniapps/ copy=no + +- name: Set permissions on bahmniapps dir + file: path=/opt/bahmni-web/etc/bahmniapps owner=bahmni group=bahmni mode=0755 recurse=yes + +- name: Remove downloaded zip file + file: path=/tmp/bahmniapps.zip state=absent +