An Ansible role for installing Java.
java_version
- Java JDK and JRE versionjava_major_version
- Major version of Java to install (default: 8
)java_flavor
- Flavor of Java to install (default: openjdk
but can also be oracle
)java_oracle_accept_license_agreement
- Flag to accept the Oracle license agreement (default: False
)Tests are driven by Molecule. To run the test suite, install Molecule and run molecule test
from the folder containing molecule.yml
. To add additional tests, add a testinfra Python script in the tests directory, or add a function to test_java.py. Information about available Testinfra modules is available here.
$ pip install -r requirements.txt
$ molecule test