# VCenter upgrade

**URL:** <https://forum.ansible.com/t/vcenter-upgrade/2979>\
**Category:** Get Help\
**Tags:** vmware, collections\
**Created:** [December 19, 2023, 7:32am UTC](https://forum.ansible.com/t/vcenter-upgrade/2979 "2023-12-19T07:32:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkrishnasamy01](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kkrishnasamy01/32/1804_2.png) [@kkrishnasamy01](https://forum.ansible.com/u/kkrishnasamy01)\
**Post date:** [December 19, 2023, 7:32am UTC](https://forum.ansible.com/t/vcenter-upgrade/2979/1 "2023-12-19T07:32:59Z")

</div>

Please help…

We are getting below error while running “vcenter upgrade playbook”

ERROR! couldn’t resolve module/action ‘vmware\_vcenter\_upgrade’. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in ‘/home/kkrishnasamy/VCenter\_Upgrade/VCenter\_Upgrade.yml’: line 10, column 7, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

tasks:  
- name: list vmware vcenter upgrade information  
^ here

* * *

* * *

- hosts: localhost  
name: VCenter\_Upgrade  
gather\_facts: false  
vars:  
vcenter\_hostname: “x.x.x.x”  
vcenter\_username: “administrator@vsphere.local”  
vcenter\_password: “Password123!”  
tasks:
  - name: list vmware vcenter upgrade information  
vmware\_vcenter\_upgrade:  
hostname: ‘{{ vcenter\_hostname }}’  
username: ‘{{ vcenter\_username }}’  
password: ‘{{ vcenter\_password }}’  
state: ‘upgrade’  
version: ‘7.0.3.01800’  
delegate\_to: localhost

* * *

---

<div class="post-metadata">

**Author:** ![mariolenz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mariolenz/32/108_2.png) [@mariolenz](https://forum.ansible.com/u/mariolenz)\
**Post date:** [December 19, 2023, 8:09am UTC](https://forum.ansible.com/t/vcenter-upgrade/2979/2 "2023-12-19T08:09:39Z")

</div>

> [@kkrishnasamy01](#):
>
> ERROR! couldn’t resolve module/action ‘vmware\_vcenter\_upgrade’. This often indicates a misspelling, missing collection, or incorrect module path.

What module should this be? It looks like neither [community.vmware](https://docs.ansible.com/ansible/9/collections/community/vmware/) nor [vmware.vmware\_rest](https://docs.ansible.com/ansible/9/collections/vmware/vmware_rest/) contain a module `vmware_vcenter_upgrade`.

---

<div class="post-metadata">

**Author:** ![kkrishnasamy01](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kkrishnasamy01/32/1804_2.png) [@kkrishnasamy01](https://forum.ansible.com/u/kkrishnasamy01)\
**Post date:** [December 19, 2023, 8:44am UTC](https://forum.ansible.com/t/vcenter-upgrade/2979/3 "2023-12-19T08:44:25Z")

</div>

Hi,

I tired with both [community.vmware] and [vmware.vmware\_rest] but still the same error. please suggest

---

<div class="post-metadata">

**Author:** ![chris](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chris/32/293_2.png) [@chris](https://forum.ansible.com/u/chris)\
**Post date:** [December 19, 2023, 11:51am UTC](https://forum.ansible.com/t/vcenter-upgrade/2979/4 "2023-12-19T11:51:06Z")

</div>

Is this the module you are looking for?

[https://github.com/scottd018/ansible-vmware-vcenter-upgrade](https://github.com/scottd018/ansible-vmware-vcenter-upgrade)

---

<div class="post-metadata">

**Author:** ![kkrishnasamy01](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kkrishnasamy01/32/1804_2.png) [@kkrishnasamy01](https://forum.ansible.com/u/kkrishnasamy01)\
**Post date:** [December 19, 2023, 12:35pm UTC](https://forum.ansible.com/t/vcenter-upgrade/2979/5 "2023-12-19T12:35:05Z")

</div>

You are right Chris.

But it is not working. Please suggest.

---

<div class="post-metadata">

**Author:** ![chris](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chris/32/293_2.png) [@chris](https://forum.ansible.com/u/chris)\
**Post date:** [December 19, 2023, 12:44pm UTC](https://forum.ansible.com/t/vcenter-upgrade/2979/6 "2023-12-19T12:44:41Z")

</div>

Try [this patch](https://github.com/scottd018/ansible-vmware-vcenter-upgrade/pull/3) and if that doesn’t work raise [an issue here](https://github.com/scottd018/ansible-vmware-vcenter-upgrade/issues)?

---

<div class="post-metadata">

**Author:** ![kkrishnasamy01](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kkrishnasamy01/32/1804_2.png) [@kkrishnasamy01](https://forum.ansible.com/u/kkrishnasamy01)\
**Post date:** [December 19, 2023, 1:06pm UTC](https://forum.ansible.com/t/vcenter-upgrade/2979/7 "2023-12-19T13:06:16Z")

</div>

Hi Chris,

I created issue there.  
Please note, im using YML .

---

<div class="post-metadata">

**Author:** ![chris](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chris/32/293_2.png) [@chris](https://forum.ansible.com/u/chris)\
**Post date:** [December 19, 2023, 1:07pm UTC](https://forum.ansible.com/t/vcenter-upgrade/2979/8 "2023-12-19T13:07:47Z")

</div>

Have you installed the module and tried applying the patch I linked to above?
