szemmali
Contributor
Contributor

Ansible Playbook to rotate Password for HP ILO Local System Account

Ansible Playbook to rotate Password for HP ILO Local System Account

 

---
- name: Password rotation for iLO local account
  hosts: all
  tasks:
  - name: Prepare hponcfg configuration XML
    ansible.builtin.copy:
      content: |
          <RIBCL VERSION="2.0">
              <LOGIN USER_LOGIN="{{ login_user }}" PASSWORD="{{ login_password }}">
                  <USER_INFO MODE="write">
                      <MOD_USER USER_LOGIN="{{ mod_user }}">
                          <PASSWORD value="{{ mod_password }}"/>
                      </MOD_USER>
                  </USER_INFO>
              </LOGIN>
          </RIBCL>
      dest: /tmp/pwreset.xml

  - name: Configure HP iLO on VMware ESXi hypervisor
    community.general.hponcfg:
      src: /tmp/pwreset.xml
      executable: /opt/tools/hponcfg

 

 

0 Kudos
0 Replies