community / community.general / 6.6.8 / module / hpilo_info Gather information through an HP iLO interface Authors: Dag Wieers (@dagwieers)community.general.hpilo_info (6.6.8) — module
Install with ansible-galaxy collection install community.general:==6.6.8
collections: - name: community.general version: 6.6.8
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(community.general.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 community.general.hpilo_info: host: YOUR_ILO_ADDRESS login: YOUR_ILO_LOGIN password: YOUR_ILO_PASSWORD when: cmdb_hwmodel.startswith('HP ') delegate_to: localhost register: results
- ansible.builtin.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 type: str login: default: Administrator description: - The login name to authenticate to the HP iLO interface. type: str password: default: admin description: - The password to authenticate to the HP iLO interface. type: str ssl_version: choices: - SSLv3 - SSLv23 - TLSv1 - TLSv1_1 - TLSv1_2 default: TLSv1 description: - Change the ssl_version used. type: str
host_power_status: description: - Power status of host. - Will be one of C(ON), C(OFF) and C(UNKNOWN). returned: always sample: 'ON' type: str version_added: 3.5.0 version_added_collection: community.general 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