Join AnsibleFest at Red Hat Summit!

community.general.ilo_redfish_command module – Manages Out-Of-Band controllers using Redfish APIs

Note

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

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_command.

New in community.general 6.6.0

Synopsis

  • Builds Redfish URIs locally and sends them to remote OOB controllers to perform an action.

Parameters

Parameter

Comments

auth_token

string

Security token for authenticating to iLO.

baseuri

string / required

Base URI of OOB controller.

ca_path

path

added in community.general 10.6.0

PEM formatted file that contains a CA certificate to be used for validation.

Only used if validate_certs=true.

category

string / required

Category to execute on OOB controller.

Choices:

  • "Systems"

ciphers

list / elements=string

added in community.general 10.6.0

TLS/SSL Ciphers to use for the request.

When a list is provided, all ciphers are joined in order with :.

See the OpenSSL Cipher List Format for more details.

The available ciphers is dependent on the Python and OpenSSL/LibreSSL versions.

command

list / elements=string / required

List of commands to execute on OOB controller.

password

string

Password for authenticating to iLO.

timeout

integer

Timeout in seconds for HTTP requests to iLO.

Default: 60

username

string

Username for authenticating to iLO.

validate_certs

boolean

added in community.general 10.6.0

If false, TLS/SSL certificates will not be validated.

Set this to true to enable certificate checking. Should be used together with ca_path.

Choices:

  • false ← (default)

  • true

Attributes

Attribute

Support

Description

check_mode

Support: none

Can run in check_mode and return changed status prediction without modifying target.

diff_mode

Support: none

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

Examples

- name: Wait for iLO Reboot Completion
  community.general.ilo_redfish_command:
    category: Systems
    command: WaitforiLORebootCompletion
    baseuri: "{{ baseuri }}"
    username: "{{ username }}"
    password: "{{ password }}"

Return Values

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

Key

Description

ilo_redfish_command

dictionary

Returns the status of the operation performed on the iLO.

Returned: always

WaitforiLORebootCompletion

dictionary

Returns the output msg and whether the function executed successfully.

Returned: success

msg

string

Status of the operation performed on the iLO.

Returned: success

ret

boolean

Return true/false based on whether the operation was performed successfully.

Returned: success

Authors

  • Varni H P (@varini-hp)