first commit
This commit is contained in:
9
roles/tomcat/tasks/revert_war.yml
Normal file
9
roles/tomcat/tasks/revert_war.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: check whether {{app}}.war.bak exists
|
||||
shell: cd {{root_dir}}/webapps/ && [ -f {{app}}.war.bak ]
|
||||
ignore_errors: true
|
||||
register: result
|
||||
- name: revert {{app}}.war.bak
|
||||
when: result is succeeded
|
||||
shell: cd {{root_dir}}/webapps/ && rm -rf {{app}}.war {{app}} && mv {{app}}.war.bak {{app}}.war
|
||||
|
||||
Reference in New Issue
Block a user