New in version 2.3.
parameter | required | default | choices | comments |
---|---|---|---|---|
host |
yes |
The HP iLO hostname/address that is linked to the physical system.
|
||
login |
no | Administrator |
The login name to authenticate to the HP iLO interface.
|
|
password |
no | admin |
The password to authenticate to the HP iLO interface.
|
|
ssl_version (added in 2.4) |
no | TLSv1 |
|
Change the ssl_version used.
|
# Task to gather facts from a HP iLO interface only if the system is an HP server - hpilo_facts: host: YOUR_ILO_ADDRESS login: YOUR_ILO_LOGIN password: YOUR_ILO_PASSWORD when: cmdb_hwmodel.startswith('HP ') delegate_to: localhost - fail: msg: 'CMDB serial ({{ cmdb_serialno }}) does not match hardware serial ({{ hw_system_serial }}) !' when: cmdb_serialno != hw_system_serial
Common return values are documented here Return Values, the following are the fields unique to this module:
name | description | returned | type | sample |
---|---|---|---|---|
hw_bios_date |
BIOS date
|
always | string | 05/05/2011 |
hw_bios_version |
BIOS version
|
always | string | P68 |
hw_eth_ilo |
Interface information (for the iLO network interface)
|
always | dictionary | [{'macaddress': '00:11:22:33:44:BA'}, {'macaddress_dash': '00-11-22-33-44-BA'}] |
hw_ethX |
Interface information (for each interface)
|
always | dictionary | [{'macaddress': '00:11:22:33:44:55', 'macaddress_dash': '00-11-22-33-44-55'}] |
hw_product_name |
Product name
|
always | string | ProLiant DL360 G7 |
hw_product_uuid |
Product UUID
|
always | string | ef50bac8-2845-40ff-81d9-675315501dac |
hw_system_serial |
System serial number
|
always | string | ABC12345D6 |
hw_uuid |
Hardware UUID
|
always | string | 123456ABC78901D2 |
Note
local_action
or using delegate_to
.This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.