Skip to content

Commit 7fabf6e

Browse files
committed
Correct default values for tomcat_deploy_from_url
1 parent 290e418 commit 7fabf6e

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

ansible/roles/geonetwork/tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
- geonetwork
3333
when: webserver_nginx
3434

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
3636
notify:
3737
- restart tomcat
3838
tags:

ansible/roles/geonetwork/vars/main.yml

-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ artifactId: ""
44
packaging: ""
55
classifier: ""
66
geonetwork_war_url: "https://github.com/geonetwork/core-geonetwork/releases/download/3.4.4/geonetwork.war"
7-
tomcat_deploy_from_url: true

ansible/roles/tomcat_deploy/tasks/main.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@
6060

6161
- name: download from url {{ war_url }}
6262
get_url: url={{ war_url }} dest="{{ tomcat_deploy_dir }}/{{ war_filename }}.war" checksum="{{ war_checksum | default('') }}" force=true timeout=60
63-
when: war_local_build is not defined and tomcat_deploy_from_url | default(false)
63+
when:
64+
- war_local_build is not defined
65+
- tomcat_deploy_from_url | default(false)
66+
notify:
67+
- restart tomcat
6468

6569
- name: download from maven repo {{ war_url }}
6670
maven_artifact:
@@ -76,7 +80,9 @@
7680
owner: "{{ tomcat_user }}"
7781
group: "{{ tomcat_user }}"
7882
verify_checksum: always
79-
when: war_local_build is not defined and not tomcat_deploy_from_url | default(false)
83+
when:
84+
- war_local_build is not defined
85+
- not tomcat_deploy_from_url | default(false)
8086
notify:
8187
- restart tomcat
8288

0 commit comments

Comments
 (0)