diff options
| author | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-12-13 18:54:21 -0700 |
|---|---|---|
| committer | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-12-13 18:54:21 -0700 |
| commit | 32086f62131e1b813e2f3d97bc2c78f66c6a3154 (patch) | |
| tree | 2005059011aea64121af64de5b3567fd0dcbca3b /playbooks/openbook_install_war_file.yaml | |
| parent | 21fa10807bb475bff42a997ac4add3cc7e6346f9 (diff) | |
adding files
Diffstat (limited to 'playbooks/openbook_install_war_file.yaml')
| -rw-r--r-- | playbooks/openbook_install_war_file.yaml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/playbooks/openbook_install_war_file.yaml b/playbooks/openbook_install_war_file.yaml new file mode 100644 index 0000000..fdc8f0a --- /dev/null +++ b/playbooks/openbook_install_war_file.yaml @@ -0,0 +1,18 @@ +--- +- name: "Install Openbook WAR file" + shell: | + pushd /var/lib/tomcat7/webapps/ + rm -rf Openbook.old + mv Openbook Openbook.old + rm -f Openbook.war + wget -q --http-user='{{ webdav_username }}' --http-password='{{ webdav_password }}' {{ webdav_url }}/Openbook.war + unzip -q Openbook.war -d Openbook + sed -e 's|<property name=\"secure\" value=\"true\" \/>|<property name="secure" value="false" />|g' -i Openbook/WEB-INF/classes/applicationContext.xml + for f in $(ls); do + if [ "${f}" != "Openbook" ]; then + rm -rf "${f}" + fi + done + popd + args: + executable: /bin/bash |
