community.general.hponcfg module – Configure HP iLO interface using hponcfg

Note

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

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. You need further requirements to be able to use this module, see Requirements for details.

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

Synopsis

  • This modules configures the HP iLO interface using hponcfg.

Aliases: remote_management.hpilo.hponcfg

Requirements

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

  • hponcfg tool

Parameters

Parameter

Comments

executable

string

Path to the hponcfg executable (hponcfg which uses $PATH).

Default: "hponcfg"

minfw

string

The minimum firmware level needed.

path

aliases: src

path / required

The XML file as accepted by hponcfg.

verbose

boolean

Run hponcfg in verbose mode (-v).

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.

Notes

Note

  • You need a working hponcfg on the target system.

Examples

- name: Example hponcfg configuration XML
  ansible.builtin.copy:
    content: |
      <ribcl VERSION="2.0">
        <login USER_LOGIN="user" PASSWORD="password">
          <rib_info MODE="WRITE">
            <mod_global_settings>
              <session_timeout value="0"/>
              <ssh_status value="Y"/>
              <ssh_port value="22"/>
              <serial_cli_status value="3"/>
              <serial_cli_speed value="5"/>
            </mod_global_settings>
          </rib_info>
        </login>
      </ribcl>
    dest: /tmp/enable-ssh.xml

- name: Configure HP iLO using enable-ssh.xml
  community.general.hponcfg:
    src: /tmp/enable-ssh.xml

- name: Configure HP iLO on VMware ESXi hypervisor
  community.general.hponcfg:
    src: /tmp/enable-ssh.xml
    executable: /opt/hp/tools/hponcfg

Authors

  • Dag Wieers (@dagwieers)