# Error in Ansible New Modules

**URL:** <https://forum.ansible.com/t/error-in-ansible-new-modules/18292>\
**Category:** Ansible Developer\
**Tags:** vmware, ubuntu\
**Created:** [May 22, 2015, 10:35pm UTC](https://forum.ansible.com/t/error-in-ansible-new-modules/18292 "2015-05-22T22:35:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarun\_emany](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@tarun\_emany](https://forum.ansible.com/u/tarun_emany)\
**Post date:** [May 22, 2015, 10:35pm UTC](https://forum.ansible.com/t/error-in-ansible-new-modules/18292/1 "2015-05-22T22:35:28Z")

</div>

Hi all,

I am trying the reproduce the same as mentioned in

[https://github.com/romeotheriault/ansible-vsphere\_guest](https://github.com/romeotheriault/ansible-vsphere_guest)

Ansible module that allows you to define and create a VMWare vsphere guest OS instance which can then be booted to start an automated install.

I have created playbook file similarly.  
while executing it i am getting the following error.

tarun@ubuntu:~/playbooks$ ansible-playbook install\_VM\_test.yml -vvvv  
[WARNING]: provided hosts list is empty, only localhost is available

PLAY [127.0.0.1] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

---

<div class="post-metadata">

**Author:** ![Toshio\_Kuratomi](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Post date:** [May 22, 2015, 11:52pm UTC](https://forum.ansible.com/t/error-in-ansible-new-modules/18292/2 "2015-05-22T23:52:18Z")

</div>

My guess is that you are getting the vsphere\_guest module that comes  
with ansible instead of the custom one that you downloaded. The one  
that comes with ansible (  
[http://docs.ansible.com/vsphere\_guest\_module.html](http://docs.ansible.com/vsphere_guest_module.html) ) does not have a  
power\_on parameter.

As to why the one you're using is not being found... I notice that the  
module you linked to was last updated quite a few years ago. One  
possibility is that the module does not end with a .py extension and  
therefore the new module loader doesn't find it. Is the module in a  
file named vsphere\_guest.py? If not, try renaming it to have that  
filename extension and see if it works.

-Toshio

---

<div class="post-metadata">

**Author:** ![tarun\_emany](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@tarun\_emany](https://forum.ansible.com/u/tarun_emany)\
**Post date:** [May 23, 2015, 12:11am UTC](https://forum.ansible.com/t/error-in-ansible-new-modules/18292/3 "2015-05-23T00:11:00Z")

</div>

Thanks. I got the required help from other group.  
I am trying to crate new module with vsphere\_guest (renamed as vsphere\_guest\_custom to avoid confusion), which has properties power\_on. I tried adding this module in library and added in my playbook as

- vsphere\_guest\_custom:
