'java_license_declaration' is undefined
patsevanton opened this issue · comments
Please add example to readme of accept Oracle Binary Code License
TASK [gantsign.java : assert Binary Code License accepted] **************************************************************************************
fatal: [java]: FAILED! => {}
MSG:
The conditional check 'java_license_declaration == 'I accept the "Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX" under the terms at http://www.oracle.com/technetwork/java/javase/terms/license/index.html'' failed. The error was: error while evaluating conditional (java_license_declaration == 'I accept the "Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX" under the terms at http://www.oracle.com/technetwork/java/javase/terms/license/index.html'): 'java_license_declaration' is undefined
cat vars/main.yml
java_license_declaration: 'I accept the "Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX" under the terms at http://www.oracle.com/technetwork/java/javase/terms/license/index.html'
TASK [gantsign.java : assert Binary Code License accepted] **************************************************************************************
fatal: [java]: FAILED! => {
"assertion": "java_license_declaration == 'I accept the \"Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX\" under the terms at http://www.oracle.com/technetwork/java/javase/terms/license/index.html'",
"changed": false,
"evaluated_to": false
}
@patsevanton thanks for reporting this. Sorry, it took so long for me to get around to fixing it. Be aware the Oracle JDK configuration is on it's own page, but the README.md
now makes it clear you need to refer to this when installing the Oracle JDK.
Be aware this Ansible role will discontinue support for the Oracle JDK once Oracle stop distributing free Oracle JDK builds (January 2019 will be the last free Java 8 release, releases from April 2019 will require a support contract https://www.oracle.com/technetwork/java/java-se-support-roadmap.html). This role will switch to AdoptOpenJDK for Java 8 to keep getting releases from April 2019. FYI: Oracle JDK has never been free for Java 11 (though Oracle do distribute free Open JDK builds for Java 11).