ans2dev.general.exa_facts module – Gathers facts from Oracle Exadata.

Note

This module is part of the ans2dev.general collection (version 0.2.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 ans2dev.general. You need further requirements to be able to use this module, see Requirements for details.

To use it in a playbook, specify: ans2dev.general.exa_facts.

New in ans2dev.general 0.1.0

Synopsis

  • Gathers facts about Oracle Exadata Machine.

Requirements

The below requirements are needed on the host that executes this module.

  • /usr/local/bin/imageinfo

  • /usr/sbin/exadata.img.hw

  • /usr/sbin/dmidecode

  • /opt/oracle.SupportTools/onecommand/databasemachine.xml

Notes

Note

  • This module shows imageinfo attribute, exadata img hw, dmidecode system info and content of databasemachine.xml.

Examples

- name: Gather exa info
  ans2dev.general.exa_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

databasemachine

list / elements=string

Complex dict created by databasemachine.xml file.

Returned: always

ORACLE_CLUSTER

dictionary

All item in xml file.

Returned: always

exa_hw

list / elements=string

value from exadata.img.hw command.

Returned: always

model

string

Machine Model.

Returned: always

Sample: "HVM domU"

exa_img

list / elements=string

imageinfo parameter.

Returned: always

Image activated

string

Image activated date and time.

Returned: always

Sample: "2023-09-02 04:02:42 +0200"

Image created

string

Image creation date and time.

Returned: always

Sample: "2023-03-02 03:40:44 -0800"

Image image type

string

The image type.

Returned: always

Sample: "production"

Image kernel version

string

Image kernel version.

Returned: always

Sample: "4.14.35-2047.518.4.2.el7uek"

Image label

string

Image label.

Returned: always

Sample: "OSS_22.1.9.0.0_LINUX.X64_230302"

Image status

string

Image status.

Returned: always

Sample: "success"

Image version

string

Image version.

Returned: always

Sample: "22.1.9.0.0.230302"

Install type

string

Install type.

Returned: always

Sample: "XEN Guest with InfiniBand"

Kernel version

string

Kernel Version.

Returned: always

Sample: "4.14.35-2047.518.4.2.el7uek.x86_64..."

Node type

string

Node type.

Returned: always

Sample: "GUEST"

System partition on device

string

System partition volume.

Returned: always

Sample: "/dev/mapper/VGExaDb-LVDbSys2"

Uptrack kernel version

string

Uptrack kernel version.

Returned: always

Sample: "4.14.35-2047.522.3.el7uek.x86_64..."

system_info

list / elements=string

paramenter from dmidecode command.

Returned: always

Family

string

Family.

Returned: always

Sample: "Not Specified"

Manufacturer

string

Manufacturer.

Returned: always

Sample: "Xen"

Product Name

string

Product Name.

Returned: always

Sample: "HVM domU"

Serial Number

string

Family.

Returned: always

Sample: "089271ba-b91f-4230-acce-be01a22fab09"

SKU Number

string

SKU Number.

Returned: always

Sample: "B88854"

UUID

string

UUID.

Returned: always

Sample: "089271ba-b91f-4230-acce-be01a22fab09"

Version

string

Version.

Returned: always

Sample: "4.4.4OVM"

Wake-up Type

string

Wake-up Type.

Returned: always

Sample: "Power Switch"

Authors

  • Marco Noce (@NomakCooper)