azavea / ansible-java Goto Github PK
View Code? Open in Web Editor NEWAn Ansible role for installing Java.
License: Apache License 2.0
An Ansible role for installing Java.
License: Apache License 2.0
Hi,
Can i get this for CentOs 7.2?
Thanks & Regards,
Prashantha As
$ ls
CHANGELOG.md README.md defaults meta playbook.yml templates
LICENSE ansible.cfg handlers molecule.yml tasks tests
$ git log -1
commit f7b1024855b226ccf95db706049abb52156e1e32 (HEAD -> develop, origin/develop, origin/HEAD)
Merge: d604128 21ea39b
Author: Taylor Nation <[email protected]>
Date: Tue Aug 22 17:03:28 2017 -0400
Merge branch 'release/0.6.1' into develop
$ molecule --version
molecule, version 2.1.0
$ molecule test
ERROR: 'molecule/*/molecule.yml' glob failed. Exiting.
Currently, this is being done via handlers, which are prone to failures where:
This leads to too many scenarios where the handler does not get run.
Unclear what version of Ansible emitted this (wasn't my machine). Probably something that needs to be fixed though so that we don't accidentally evaluate the condition incorrectly:
TASK [azavea.java : Add OpenJDK PPA] *******************************************
Tuesday 01 August 2017 16:39:17 -0400 (0:00:00.746) 0:00:28.420 ********
[WARNING]: when statements should not include jinja2 templating delimiters
such as {{ }} or {% %}. Found: {{ ansible_distribution_version |
version_compare('14.04', '=') and java_major_version | version_compare('8',
'>=') }}
Attempting to install Oracle Java to a new VM fails with:
When on Ubuntu 14.04, enable the ppa:openjdk-r/ppa
PPA so that OpenJDK 8 can be installed.
When installing OpenJDK, the postinstall step responsible for populating /etc/ssl/certs/java/cacerts
fails, leading to error messages like the one described in WikiWatershed/model-my-watershed#2167:
Unable to execute HTTP request: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
The solution, from the ca-certificates-java
bug, is to run /var/lib/dpkg/info/ca-certificates-java.postinst
after installing the JDK.
The 2.x series of Molecule changed its configuration file format, which is now incompatible with the one used by this role. When upgrading to support the new configuration file format, make use of the molecule init role -r java
command to generate a new project scaffold. Determine which parts of the scaffold are worth keeping. From there, get the test suite working again.
When I run the example with Vagrant 1.5.1 and ansible 1.7.1, I get this error:
____________________________________________________
< TASK: azavea.java | Install OpenJDK JRE (headless) >
----------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
failed: [default] => {"failed": true}
msg: pkgname wildcard and version can not be mixed
FATAL: all hosts have already failed -- aborting
Fix error running on ansible 2.9.0: AnsibleError: template error while templating string: no filter named 'version_compare'.
version_compare
was renamed to version
in 2.6.
On 32 bit machines following error occurs:
TASK: [azavea.java | Set OpenJDK as the default] ******************************
failed: [192.168.111.50] => {"cmd": "/usr/bin/update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 50", "failed": true, "rc": 2}
stderr: update-alternatives: error: alternative path /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java doesn't exist
msg: update-alternatives: error: alternative path /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java doesn't exist
but the correct path should be:
/usr/lib/jvm/java-7-openjdk-i386/jre/bin/java
I think architecture check on following line should fix the problem
https://github.com/azavea/ansible-java/blob/develop/tasks/openjdk.yml#L15
Thanks
Packer uploads roles from ansible-galaxy and is unable to do that with this role because of a symlink. Packer gives the following error:
Error uploading playbook_dir directory: open /home/ansible/community-roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java/examples/roles/azavea.java: too many levels of symbolic links
Can this symlink be removed, and just have the example reference the role some other way?
Possibly a reincarnation of this bug.
Oracle Java sometimes will throw exceptions in use if the 32-bit version of libxtst6 cannot be found; this doesn't happen on desktop Ubuntu installs, as there's an assistive technology library that depends on it.
To install, multiarch support must be enabled:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libxtst6:i386
The following deprecation warning is being produced by Ansible 2.4:
[DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use
'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions.
This feature will be removed in a future release. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
Need to bump to 8u121*
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.