Skip to content

Commit

Permalink
update to deploy custom version of bahmniapps
Browse files Browse the repository at this point in the history
  • Loading branch information
mogoodrich committed May 25, 2017
1 parent 7099e45 commit 9243dec
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playbooks/all.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
- hosts: bahmni-emr
sudo: yes
roles:
- { role: bahmni-endtb-batch }
- bahmni-endtb-batch
- bahmniapps
tags:
- bahmni-emr-customization
18 changes: 18 additions & 0 deletions playbooks/roles/bahmniapps/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9243dec

Please sign in to comment.