cloudera.exe.jdk_facts module – Retrieve JDK information

Note

This module is part of the cloudera.exe collection (version 3.0.0).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install cloudera.exe..

To use it in a playbook, specify: cloudera.exe.jdk_facts.

New in cloudera.exe 3.0.0

Synopsis

  • Retrieve information about the installed Java JDK as facts.

Attributes

Attribute

Support

Description

check_mode

Support: full

Can run in check_mode and return changed status prediction without modifying target, if not supported the action will be skipped.

diff_mode

Support: none

Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode

facts

Support: full

Action returns an ansible_facts dictionary that will update existing host facts

platform

Platforms: 

Target OS/families that can be operated against

See Also

See also

Java version history

Java version history

Examples

- name: Retrieve JDK details
  cloudera.exe.jdk_facts:

Returned Facts

Facts returned by this module are added/updated in the hostvars host facts and can be referenced by name just like any other host fact. They do not need to be registered in order to use them.

Key

Description

jdk

dictionary

Details on installed Java JDK executable.

Returned: always

build

string

JDK build version.

Returned: when supported

major

string

JDK major version.

Returned: when supported

minor

string

JDK minor version.

Returned: when supported

patch

string

JDK patch version.

Returned: when supported

provider

string

JDK provider.

Normalized for Oracle trademark.

Returns None if no JDK is discovered.

Returned: always

release

string

JDK release version.

Returned: when supported

update

string

JDK update details.

Returned: when supported

version

string

JDK version string in its entirety.

Returned: when supported

Authors

  • Webster Mudge