ansible-aix / ansible-power-aix

Developer contributions for Ansible Automation on Power
GNU General Public License v3.0
3 stars 1 forks source link

New viosupgrade module/plugin (ibm.power_vios) #78

Open robinvy opened 4 years ago

robinvy commented 4 years ago

Upgrade a VIOS as endpoint operation.

Part of ibm.power-vios Use the viosupgrade ioscli command locally on the VIOS managed node.

dberg1 commented 3 years ago

Investigate using an action plugin

dberg1 commented 3 years ago

Problem is that after reboot of the VIOS, the SSH keys are not preserved, so the Ansible control node cannot SSH into the VIOS to query for the status of the upgrade. We probably need to preserve /etc/ssh/ssh_host files. Same thing for the SSH public key of the control node that is no longer present in the remote user's authorized_keys file.

dberg1 commented 3 years ago

On old versions of viosupgrade (without -P and -F forcecopy options), return when the system reboots. On newer versions (with -P and -F forcecopy option), copy the SSH keys after the upgrade and wait until upgrade is complete.