community.general.ilo_redfish_info module – Gathers server information through iLO using Redfish APIs

Note

This module is part of the community.general collection (version 4.8.1).

You might already have this collection installed if you are using the ansible package. 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 community.general.

To use it in a playbook, specify: community.general.ilo_redfish_info.

New in version 4.2.0: of community.general

Synopsis

  • Builds Redfish URIs locally and sends them to iLO to get information back.

  • For use with HPE iLO operations that require Redfish OEM extensions.

Parameters

Parameter

Comments

auth_token

string

Security token for authentication with iLO.

baseuri

string / required

Base URI of iLO.

category

list / elements=string / required

List of categories to execute on iLO.

command

list / elements=string / required

List of commands to execute on iLO.

password

string

Password for authentication with iLO.

timeout

integer

Timeout in seconds for URL requests to iLO.

Default: 10

username

string

User for authentication with iLO.

Examples

- name: Get iLO Sessions
  community.general.ilo_redfish_info:
    category: Sessions
    command: GetiLOSessions
    baseuri: "{{ baseuri }}"
    username: "{{ username }}"
    password: "{{ password }}"
  register: result_sessions

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

ilo_redfish_info

dictionary

Returns iLO sessions.

Returned: always

GetiLOSessions

dictionary

Returns the iLO session msg and whether the function executed successfully.

Returned: success

msg

list / elements=dictionary

Information of all active iLO sessions.

Returned: success

Description

string

Provides a description of the resource.

Returned: success

Id

string

The sessionId.

Returned: success

Name

string

The name of the resource.

Returned: success

UserName

string

Name to use to log in to the management processor.

Returned: success

ret

boolean

Check variable to see if the information was succesfully retrived.

Returned: success

Authors

  • Bhavya B (@bhavya06)