add task for jvm dir creation

This commit is contained in:
Roberto Cirillo 2019-02-27 10:02:48 +01:00
parent 3b06338f55
commit b3f8f81e6c
1 changed files with 5 additions and 1 deletions

View File

@ -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