File tree 4 files changed +18
-9
lines changed
4 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 32
32
- geonetwork
33
33
when : webserver_nginx
34
34
35
- - include : ../../tomcat_deploy/tasks/main.yml war_url='{{ geonetwork_war_url }}' context_path='{{ geonetwork_context_path }}' hostname='{{ geonetwork_hostname }}'
35
+ - include : ../../tomcat_deploy/tasks/main.yml war_url='{{ geonetwork_war_url }}' context_path='{{ geonetwork_context_path }}' hostname='{{ geonetwork_hostname }}' tomcat_deploy_from_url=true
36
36
notify :
37
37
- restart tomcat
38
38
tags :
Original file line number Diff line number Diff line change 1
- groupId : " org.geoserver.web"
2
- version : " {{ geoserver_version | default('2.19.2') }}"
3
- artifactId : " gs-web-app"
4
- packaging : " war"
5
- classifier : " war"
6
-
7
1
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
2
geoserver_war_sha1sum : " sha1:db9ce038fb2bea7c67a7012bb338c1447260a2b0"
9
3
Original file line number Diff line number Diff line change
1
+ maven_repo_url : " https://repo.osgeo.org/repository/release/"
2
+ groupId : " org.geoserver.web"
3
+ version : " {{ geoserver_version | default('2.19.2') }}"
4
+ artifactId : " gs-web-app"
5
+ packaging : " war"
6
+ classifier : " "
Original file line number Diff line number Diff line change 58
58
- name : remove existing webapp (to ensure a clean redeployment)
59
59
file : path="{{ tomcat_deploy_dir }}/{{ war_filename }}.war" state=absent
60
60
61
+ - name : download from url {{ war_url }}
62
+ get_url : url={{ war_url }} dest="{{ tomcat_deploy_dir }}/{{ war_filename }}.war" checksum="{{ war_checksum | default('') }}" force=true timeout=60
63
+ when :
64
+ - war_local_build is not defined
65
+ - tomcat_deploy_from_url | default(false)
66
+ notify :
67
+ - restart tomcat
68
+
61
69
- name : download from maven repo {{ war_url }}
62
- # get_url: url={{ war_url }} dest="{{ tomcat_deploy_dir }}/{{ war_filename }}.war" checksum="{{ war_checksum | default('') }}" force=true timeout=60
63
70
maven_artifact :
64
71
group_id : " {{groupId | default('au.org.ala')}}"
65
72
artifact_id : " {{artifactId}}"
73
80
owner : " {{ tomcat_user }}"
74
81
group : " {{ tomcat_user }}"
75
82
verify_checksum : always
76
- when : war_local_build is not defined
83
+ when :
84
+ - war_local_build is not defined
85
+ - not tomcat_deploy_from_url | default(false)
77
86
notify :
78
87
- restart tomcat
79
88
You can’t perform that action at this time.
0 commit comments