-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathHPiLo_facts.yml
25 lines (24 loc) · 951 Bytes
/
HPiLo_facts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Created by thopper91(2017)
#
# Variables will need to be changed based on your environment
---
- hosts: localhost
vars:
iLo_IP: '0.0.0.0' #ILO IP
iLo_username: 'username' #ILO IP
iLo_password: 'password' #ILO Password
tasks:
- hpilo_facts:
host: "{{ iLo_IP }}"
login: "{{ iLo_username }}"
password: "{{ iLo_password }}"
delegate_to: localhost
## Not all return values are required, add / remove what is required
- debug: var=hw_bios_version #Ouput BIOS version
- debug: var=hw_product_name # Ouput Product Name
- debug: var=hw_bios_date # Output BIOS Date
- debug: var=hw_ethX # Output Interface Information, for each Interface
- debug: var=hw_system_serial #Output System Serial number
- debug: var=hw_eth_ilo #Output Interface Information for the ILO Network Interface
- debug: var=hw_uuid # Output Hardware UUID
- debug: var=hw_product_uuid # Output Product UUID