You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Server being configured is:
Red Hat Enterprise Linux 8.3 (Ootpa)
STEPS TO REPRODUCE
---
- name: Install AdoptOpenJDKhosts: dev_vmvars:
- username: ansible
- user_ssh_private_key: /Users/ha2021/gitrepos/ansible-bootstrap-server/ssh-keys/ansible-ssh-key.key
- ansible_connection: ssh
- ansible_ssh_user: "{{ username }}"
- ansible_ssh_private_key_file: "{{ user_ssh_private_key }}"roles:
- role: java# adoptopenjdk does not work - gives error "The error was: 'java_artifact' is undefined"# java_download_path: /tmp# java_distribution: adoptopenjdk# transport: fallback# java_package: jre# adoptopenjdk_impl: hotspot# java_major_version: 13# openjdk 15 does not work - gives error "The error was: 'java_artifact' is undefined"java_distribution: openjdktransport: fallbackjava_major_version: 15java_setup_path: truejava_download_path: /tmpjava_tarball_install: true# openjdk 8 works# java_distribution: openjdk# transport: repositories# java_major_version: 8# java_setup_path: true# java_path: /usr/lib/jvm# java_tarball_install: false# java_alternative_priority: 100# java_unlimited_policy_enabled: false
EXPECTED RESULTS
java installs with no errors
ACTUAL RESULTS
TASK [java : Install java packages] **********************************************************************************************************************************************************************************
fatal: [172.X.X.X]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'java_artifact' is undefined\n\nThe error appears to be in '/Users/ha2021/gitrepos/ansible-role-java/roles/java/tasks/Linux/install/RedHat.yml': line 2, 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: Install java packages\n ^ here\n"}
The text was updated successfully, but these errors were encountered:
SUMMARY
getting error on ansible run
ISSUE TYPE
COMPONENT NAME
ansible-role-java
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Ansible workstation is running:
MacOS 10.15.7
Server being configured is:
Red Hat Enterprise Linux 8.3 (Ootpa)
STEPS TO REPRODUCE
EXPECTED RESULTS
java installs with no errors
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: