Skip to content

redhat: download failing #90

@sfeltman

Description

@sfeltman

This task is failing after not using it for about 2 months.

It seems the role is a bit fragile due needing to parse links out of the Oracle website? Is there any way to specify direct download links so I can cache my own versions in Artifactory?

System is Fedora 23 (4.8.13-100.fc23.x86_64)

The role is being used as follows:

  roles:
    - role: ansiblebit.oracle-java
      become: yes
      oracle_java_version: 8
      oracle_java_set_as_default: true

Full text of error:

TASK [ansiblebit.oracle-java : define download page URL based on latest version] *****************************************************************
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|version_compare` use `result is version_compare`. This 
feature will be removed in version 2.9. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
fatal: [localhost]: FAILED! => {"msg": "The conditional check 'latest_java_page_and_version[1] | version_compare(oracle_java_version,'=')' failed. The error was: Version comparison: list object has no element 1\n\nThe error appears to have been in '<snip>/ansiblebit.oracle-java/tasks/redhat/main.yml': line 19, 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- name: define download page URL based on latest version\n  ^ here\n"}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions