From bb45d34f367c81165b5e0371425ea460f8c84de3 Mon Sep 17 00:00:00 2001 From: Rommel Layco Date: Mon, 18 Mar 2019 14:18:21 +1300 Subject: [PATCH] Stringfy the oracle and mirror value inside conditional --- tasks/set-jdk-vars.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tasks/set-jdk-vars.yml b/tasks/set-jdk-vars.yml index 4f71c37..0ac1ed4 100644 --- a/tasks/set-jdk-vars.yml +++ b/tasks/set-jdk-vars.yml @@ -215,13 +215,19 @@ set_fact: jce_zip_url: "http://download.oracle.com/otn-pub/java/jce/{{ java_version }}/{{ jce_zip_file }}" jce_zip_folder: "UnlimitedJCEPolicyJDK{{ java_version }}" - when: java_version == 8 and java_subversion < 161 and java_download_from == oracle + when: + - java_version == 8 + - java_subversion < 161 + - java_download_from == "oracle" - name: Set JCE variables for Java 8 for alternative mirror set_fact: jce_zip_url: "{{ java_mirror }}/{{ jce_zip_file }}" jce_zip_folder: "UnlimitedJCEPolicyJDK{{ java_version }}" - when: java_version == 8 and java_subversion < 161 and java_download_from == mirror + when: + - java_version == 8 + - java_subversion < 161 + - java_download_from == "mirror" # JDKs greater or equal than 8u161 do not need JCE anymore