Giter VIP home page Giter VIP logo

vsphere-lab-deploy's Issues

pyvmomi module requirement issue

I'm getting an error, pyvmomi module error when running the playbook. I tried to add delegate_to: localhost in the task but still getting the same error. I have the pyvmomi module installed, python 2.7.10. Running this on OSX 10.13 (high sierra)

# pip show pyvmomi
Name: pyvmomi
Version: 6.5.0.2017.5.post1
Summary: VMware vSphere Python SDK
Home-page: https://github.com/vmware/pyvmomi
Author: VMware, Inc.
Author-email: [email protected]
License: License :: OSI Approved :: Apache Software License
Location: /Library/Python/2.7/site-packages
Requires: requests, six
TASK [Create Datacenter] ******************************************************************************************************
task path: /Users/gr/Documents/vmware-lab/vsphere-lab-deploy-gracie/playbooks/deployVC.yml:102
Using module file /usr/local/Cellar/ansible/2.4.3.0/libexec/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vmware_datacenter.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: gr
<localhost> EXEC /bin/sh -c 'echo ~ && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /Users/gr/.ansible/tmp/ansible-tmp-1517708521.27-251117388112169 `" && echo ansible-tmp-1517708521.27-251117388112169="` echo /Users/gracet/.ansible/tmp/ansible-tmp-1517708521.27-251117388112169 `" ) && sleep 0'
<localhost> PUT /var/folders/_y/pjvwjs_11f75c08bwq9xslv1pcmp50/T/tmp74u9Qx TO /Users/gr/.ansible/tmp/ansible-tmp-1517708521.27-251117388112169/vmware_datacenter.py
<localhost> EXEC /bin/sh -c 'chmod u+x /Users/gr/.ansible/tmp/ansible-tmp-1517708521.27-251117388112169/ /Users/gracet/.ansible/tmp/ansible-tmp-1517708521.27-251117388112169/vmware_datacenter.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/local/Cellar/ansible/2.4.3.0/libexec/bin/python /Users/gracet/.ansible/tmp/ansible-tmp-1517708521.27-251117388112169/vmware_datacenter.py; rm -rf "/Users/gr/.ansible/tmp/ansible-tmp-1517708521.27-251117388112169/" > /dev/null 2>&1 && sleep 0'
The full traceback is:
  File "/var/folders/_y/pjvwjs_11f75c08bwq9xslv1pcmp50/T/ansible_bBuo8n/ansible_module_vmware_datacenter.py", line 69, in <module>
    from pyVmomi import vim, vmodl

fatal: [localhost -> localhost]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "datacenter_name": "Datacenter",
            "hostname": "172.16.0.1",
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "state": "present",
            "username": "[email protected]",
            "validate_certs": false
        }
    },
    "msg": "pyvmomi is required for this module"
}

vds folder

Can we create this dvs under specific folder ?

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.