Non-interactive RKE2 Update on Rancher Managed Clusters

Hello,

I am trying to use Ansible to update the clusters managed by Rancher, but I have not been able to do so. While the graphical interface makes it easy using the dropdown rke2 versions list, I cannot find a way to perform the update via CLI or API.

Is there any way to perform this update non-interactively on the clusters managed by Rancher?

I am currently using Rancher and Rancher CLI version 2.10.0.

Thank you in advance for any help or suggestions.

Best regards.

Ok, I was able to do this, just changing the version on the cluster template and re-applying it:

rancher context switch
local / Default
rancher kubectl apply -f cluster-template.yaml

Wait until cluster is re-created