Hi Tarun,

Please check the 'state' parameter for the module in your playbook - it 
should be powered_on, not power_on.


On Friday, May 22, 2015 at 2:50:45 PM UTC-7, tarun emany wrote:
>
> Hi all,
>
> I am trying the reproduce the same as mentioned in 
>
> 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] 
> ************************************************************** 
>
> TASK: [vsphere_guest ] 
> ******************************************************** 
> <127.0.0.1> REMOTE_MODULE vsphere_guest vcenter_hostname=10.39.1.59 
> password=VALUE_HIDDEN datastore=10_39_1_59_datastore1 esxi_hostname=
> esx-dev.hw-lab-pxe.inca.infoblox.com user=root guestosid=ubuntu64Guest 
> vm_notes=test guest=newTestVM datacenter=ha-datacenter
> <127.0.0.1> EXEC ['/bin/sh', '-c', 'mkdir -p 
> $HOME/.ansible/tmp/ansible-tmp-1432331320.78-272982991862969 && chmod a+rx 
> $HOME/.ansible/tmp/ansible-tmp-1432331320.78-272982991862969 && echo 
> $HOME/.ansible/tmp/ansible-tmp-1432331320.78-272982991862969']
> <127.0.0.1> PUT /tmp/tmp8bwjcs TO 
> /home/tarun/.ansible/tmp/ansible-tmp-1432331320.78-272982991862969/vsphere_guest
> <127.0.0.1> EXEC ['/bin/sh', '-c', u'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 
> /usr/bin/python 
> /home/tarun/.ansible/tmp/ansible-tmp-1432331320.78-272982991862969/vsphere_guest;
>  
> rm -rf /home/tarun/.ansible/tmp/ansible-tmp-1432331320.78-272982991862969/ 
> >/dev/null 2>&1']
> failed: [127.0.0.1] => {"failed": true}
>
> *msg: unsupported parameter for module: power_on*
> FATAL: all hosts have already failed -- aborting
>
> PLAY RECAP 
> ******************************************************************** 
>            to retry, use: --limit @/home/tarun/install_VM_test.retry
>
> 127.0.0.1                  : ok=0    changed=0    unreachable=0    
> failed=1   
>
> I am using the same *vsphere_guest* provided in above link..
> Should i include vsphere_guest.py file in ansible module or configure it 
> in plugins?
>
>
> Please help me. I am new to ansible.
>
> Thanks
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/69de6e95-7cbd-4199-8a47-c773c6385894%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to