Skip to content

Commit

Permalink
Added optional checksum to war downloads with sample (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjrj committed May 3, 2023
1 parent fe9d361 commit 98237e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ansible/roles/geoserver/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#classifier: "war"

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"
geoserver_war_sha1sum: "sha1:db9ce038fb2bea7c67a7012bb338c1447260a2b0"

# URLs to extensions as .zip
# Must be compatible with the geoserver version
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/tomcat_deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
file: path="{{ tomcat_deploy_dir }}/{{ war_filename }}.war" state=absent

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

0 comments on commit 98237e3

Please sign in to comment.