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

get JDK tarball (as RPM file) error #42

Closed stephan-nik closed 8 years ago

stephan-nik commented 8 years ago

Hello,

I receive the following error when I want to install java with your playbook TASK [oracle-java : get JDK tarball (as RPM file)] ***************************** fatal: [host]: FAILED! => {"failed": true, "msg": "The conditional check '(jdk_info.stdout|from_json).not_found' failed. The error was: Unexpected templating type error occurred on ({% if (jdk_info.stdout|from_json).not_found %} True {% else %} False {% endif %}): expected string or buffer\n\nThe error appears to have been in '$PATH/oracle-java/tasks/main.yml': line 37, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- include: install.yml\n ^ here\n"}

CentOS 7.2.1511

Variables: java_version: 8 java_set_javahome: true java_install_jce: true

Thanks, Stephan

stephan-nik commented 8 years ago

The role does not work with the --check parameter. Works fine without