# Non-interactive RKE2 Update on Rancher Managed Clusters

**URL:** <https://forums.suse.com/t/non-interactive-rke2-update-on-rancher-managed-clusters/44987>\
**Category:** SUSE Rancher Prime\
**Created:** [January 20, 2025, 2:25pm UTC](https://forums.suse.com/t/non-interactive-rke2-update-on-rancher-managed-clusters/44987 "2025-01-20T14:25:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manofftoday](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/manofftoday/32/11923_2.png) [@manofftoday](https://forums.suse.com/u/manofftoday)\
**Post date:** [January 20, 2025, 2:25pm UTC](https://forums.suse.com/t/non-interactive-rke2-update-on-rancher-managed-clusters/44987/1 "2025-01-20T14:25:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![manofftoday](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/manofftoday/32/11923_2.png) [@manofftoday](https://forums.suse.com/u/manofftoday)\
**Post date:** [January 21, 2025, 7:06am UTC](https://forums.suse.com/t/non-interactive-rke2-update-on-rancher-managed-clusters/44987/2 "2025-01-21T07:06:39Z")

</div>

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

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

```

Wait until cluster is re-created
