--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAB_%3D4oYsnaLHxaAdq8M4gQw6sEWopw3aJ-HOy8jqviXycVWh9g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwN4JrEKkf%3D-ihRb%3D_ve5gq4_1nT%3DLKPvb7C%3D_eMuAzxTg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwN4JrEKkf%3D-ihRb%3D_ve5gq4_1nT%3DLKPvb7C%3D_eMuAzxTg%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4dcdaa01-e887-b05a-5305-47b0fe6ca065%40linuxia.de.
- 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
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwPt_gmBn6XdZz3gNQXgDvwbvg3yQpUbk8oqjMRdQQW0Gw%40mail.gmail.com.
| --- | |
| - 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 here i want to get ILO Version ( example :ILO 5 ,ILO 4 ,ILO 3 like that) Can some one pls help me what parameter have to pass on this. thanks-- naveen |
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwPM9DPRP%2Bg25Oxcb7cc2CKFpsq1hBV8xeAS5MxeFh467A%40mail.gmail.com.