William-Yeh / ansible-oracle-java

An Ansible role that installs Oracle JDK, in the format for Ansible Galaxy.
https://galaxy.ansible.com/williamyeh/oracle-java/
Apache License 2.0
170 stars 133 forks source link

A problem with Debian #18

Open campa opened 8 years ago

campa commented 8 years ago

Hi,

Using it with Deabian 8.2 - from minimal distro - I found this issue:

TASK [williamyeh.oracle-java : install JDK via tarball file] *******************
fatal: [debian.ansible]: FAILED! => {"changed": false, "failed": true, "msg": "dest '/usr/java' must be an existing dir"}

I tried the dir before using, but I had the same error

- name: Creates directory /usr/java 
  file: path=/usr/java  state=directory
  when: ansible_os_family == "Debian"

I'm searching to understand howto to solve...

William-Yeh commented 8 years ago

Hi,

I've tried on both platforms, and found no problem like yours:

Could you provide more details (e.g., turn on the verbose mode with -vvv)?

campa commented 8 years ago

Hi Wiliam,

I traied with a fresh Debian ( via netinstall) , but the problem persists. I attached the playbook and the stdout with all parts. The problem is little different, but I my opinion is related. In my first attempt I forced before the creation of the directory...

java.yml.txt stdout.txt

Bye