Giter Site home page Giter Site logo

ansible-vmware-vcenter-upgrade's People

Contributors

quentinlegay avatar scottd018 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-vmware-vcenter-upgrade's Issues

setting version in task always returns "Unable to find upgrade version"

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.

VCenter upgrade ansible playbook not working

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:

  • name: list vmware vcenter upgrade information
    ^ here

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.