community / community.general / 0.1.4 / module / hpilo_facts Gather information through an HP iLO interface Authors: Dag Wieers (@dagwieers)community.general.hpilo_facts (0.1.4) — module
Install with ansible-galaxy collection install community.general:==0.1.4
collections: - name: community.general version: 0.1.4
This module gathers information on a specific system using its HP iLO interface. These information includes hardware and network related information useful for provisioning (e.g. macaddress, uuid).
This module requires the C(hpilo) python module.
This module was called C(hpilo_facts) before Ansible 2.9, returning C(ansible_facts). Note that the M(hpilo_info) module no longer returns C(ansible_facts)!
- name: Gather facts from a HP iLO interface only if the system is an HP server hpilo_info: host: YOUR_ILO_ADDRESS login: YOUR_ILO_LOGIN password: YOUR_ILO_PASSWORD when: cmdb_hwmodel.startswith('HP ') delegate_to: localhost register: results
- fail: msg: 'CMDB serial ({{ cmdb_serialno }}) does not match hardware serial ({{ results.hw_system_serial }}) !' when: cmdb_serialno != results.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.
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