How to update the Operating System of a sharded cluster servers.

Hi! I’m new to these forums. I have a sharded cluster with 2 shards and a replica set with 3 nodes each. Additionally, I have the config servers in a replica set with 3 nodes, and 2 mongos agents. All of this architecture is hosted on Oracle Linux servers, and I need to change the OS to RHEL 8.7 / 8.9 on all servers. Is there a recommended way to do this? I have been reading the documentation and I think that this is a good option:

I would really appreciate your recommendations and help.

Thanks!