From b3f8f81e6c7b31eebc72c4570efa6561d6f997ab Mon Sep 17 00:00:00 2001 From: Roberto Date: Wed, 27 Feb 2019 10:02:48 +0100 Subject: [PATCH] add task for jvm dir creation --- oracle-jdk/tasks/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/oracle-jdk/tasks/main.yml b/oracle-jdk/tasks/main.yml index 861dd161..1f5c6073 100644 --- a/oracle-jdk/tasks/main.yml +++ b/oracle-jdk/tasks/main.yml @@ -36,8 +36,12 @@ tags: [ 'oracle_jdk', 'jdk' ] - block: + - name: Create jvm directory + file: dest=/usr/lib/jvm state=directory + when: '{{ jdk_use_tarfile }}' + - name: Install a custom version of Oracle JDK from a tar file - unarchive: src={{ jdk_tarfile }} dest={{ jdk_java_home_prefix }} copy={{ jdk_copy_tarfile | default(omit) }} remote_src=yes + unarchive: src={{ jdk_tarfile_path }} dest={{ jdk_java_home_prefix }} copy={{ jdk_copy_tarfile | default(omit) }} remote_src=yes when: '{{ jdk_use_tarfile }}' - name: Set fact jdk_installed