Skip to content

Commit 98237e3

Browse files
authored
Added optional checksum to war downloads with sample (#659)
1 parent fe9d361 commit 98237e3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ansible/roles/geoserver/defaults/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#classifier: "war"
66

77
geoserver_war_url: "https://repo.osgeo.org/repository/release/org/geoserver/web/gs-web-app/2.19.2/gs-web-app-2.19.2.war"
8+
geoserver_war_sha1sum: "sha1:db9ce038fb2bea7c67a7012bb338c1447260a2b0"
89

910
# URLs to extensions as .zip
1011
# Must be compatible with the geoserver version

ansible/roles/tomcat_deploy/tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
file: path="{{ tomcat_deploy_dir }}/{{ war_filename }}.war" state=absent
4848

4949
- name: download from maven repo {{ war_url }}
50-
get_url: url={{ war_url }} dest="{{ tomcat_deploy_dir }}/{{ war_filename }}.war" force=true timeout=60
50+
get_url: url={{ war_url }} dest="{{ tomcat_deploy_dir }}/{{ war_filename }}.war" checksum="{{ war_checksum | default('') }}" force=true timeout=60
5151
when: war_local_build is not defined
5252
notify:
5353
- restart tomcat

0 commit comments

Comments
 (0)