scottd018 / ansible-vmware-vcenter-upgrade Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
When trying to upgrade vCenter with a custom version the module always returns that it's unablee to find the upgrade version.
Upon reviewing the code I found the culprit (line 173 and 189);
def get_upgrade_from_version(self):
for upgrade_version in self.upgrade_data:
if upgrade_version['version'] is self.version:
return self.version
return '0.0.0'
if self.upgrade_version == '0.0.0':
self.module.fail_json(
msg='Unable to find vCenter upgrade version: %s' % self.version,
)
No matter what version you put in it will always return 0.0.0 To fix this, I have changed the code by editing line 178 and instead of return 0.0.0
I have changed it to return self.version
.
After this code change I was able to upgrade vCenter.
Hi,
**Issue :**VCenter upgrade ansible playbook not working
Error: 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:
Playbook:
hosts: localhost
name: VCenter_Upgrade
gather_facts: false
vars:
vcenter_hostname: “x.x.x.x”
vcenter_username: “[email protected]”
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.