ansible / ansible.builtin / v2.8.18 / module / hpilo_facts Gather facts through an HP iLO interface | "added in version" 2.3 of ansible.builtin" Authors: Dag Wieers (@dagwieers) preview | supported by communityansible.builtin.hpilo_facts (v2.8.18) — module
pip
Install with pip install ansible==2.8.18
This module gathers facts for a specific system using its HP iLO interface. These facts include hardware and network related information useful for provisioning (e.g. macaddress, uuid).
This module requires the hpilo python module.
# 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
host: description: - The HP iLO hostname/address that is linked to the physical system. required: true login: default: Administrator description: - The login name to authenticate to the HP iLO interface. password: default: admin description: - The password to authenticate to the HP iLO interface. ssl_version: choices: - SSLv3 - SSLv23 - TLSv1 - TLSv1_1 - TLSv1_2 default: TLSv1 description: - Change the ssl_version used. version_added: '2.4' version_added_collection: ansible.builtin
hw_bios_date: description: BIOS date returned: always sample: 05/05/2011 type: str hw_bios_version: description: BIOS version returned: always sample: P68 type: str hw_ethX: description: Interface information (for each interface) returned: always sample: - macaddress: 00:11:22:33:44:55 macaddress_dash: 00-11-22-33-44-55 type: dict hw_eth_ilo: description: Interface information (for the iLO network interface) returned: always sample: - macaddress: 00:11:22:33:44:BA - macaddress_dash: 00-11-22-33-44-BA type: dict hw_product_name: description: Product name returned: always sample: ProLiant DL360 G7 type: str hw_product_uuid: description: Product UUID returned: always sample: ef50bac8-2845-40ff-81d9-675315501dac type: str hw_system_serial: description: System serial number returned: always sample: ABC12345D6 type: str hw_uuid: description: Hardware UUID returned: always sample: 123456ABC78901D2 type: str