Re: [ansible-project] Re: vsphere wait for vm powered off

2018-04-13 Thread Kai Stian Olstad
On Friday, 13 April 2018 09.14.36 CEST Zeljko Dokman wrote: > Do you know is it possible to list all undocumented parameters of a module > and its states? I don't think there are any undocumented parameters so in that regard the module documentation is very good. But the output they generate is

Re: [ansible-project] Re: vsphere wait for vm powered off

2018-04-13 Thread Zeljko Dokman
Hi, thank you for your replay Do you know is it possible to list all undocumented parameters of a module and its states? Regards On Thursday, April 12, 2018 at 5:09:05 PM UTC+2, Kai Stian Olstad wrote: > > On 12.04.2018 14:11, Zeljko Dokman wrote: > > Hi, > > thank you for the info. > >

Re: [ansible-project] Re: vsphere wait for vm powered off

2018-04-12 Thread Kai Stian Olstad
On 12.04.2018 14:11, Zeljko Dokman wrote: Hi, thank you for the info. one more question, for vsphere_guest module, how to know that "state" parameter should be referenced as "vm_state.ansible_facts.hw_power_status", this part a have not find in the documentation.? how is this contracted for

Re: [ansible-project] Re: vsphere wait for vm powered off

2018-04-12 Thread Zeljko Dokman
Hi, thank you for the info. one more question, for vsphere_guest module, how to know that "state" parameter should be referenced as "vm_state.ansible_facts.hw_power_status", this part a have not find in the documentation.? how is this contracted for all other parameters for particular module?

Re: [ansible-project] Re: vsphere wait for vm powered off

2018-04-11 Thread Kai Stian Olstad
On Wednesday, 11 April 2018 11.05.42 CEST Zeljko Dokman wrote: > Hi, thank you, your suggestion works. > I am wondering are this options documented some where? or how can I list > this option for a module? > Ansible documentation is not covering all this options or I haven't been > able to find

[ansible-project] Re: vsphere wait for vm powered off

2018-04-11 Thread Zeljko Dokman
Hi, thank you, your suggestion works. I am wondering are this options documented some where? or how can I list this option for a module? Ansible documentation is not covering all this options or I haven't been able to find it. here is a working code - name: Wait till {{ target }} is

[ansible-project] Re: vsphere wait for vm powered off

2018-04-10 Thread robert sanders
change result to vm_state if youre using vsphere_guest register: vm_state until: vm_state.ansible_facts.hw_power_status == 'POWERED OFF' retries: 10 delay: 5 On Wednesday, April 4, 2018 at 9:34:32 AM UTC-4, Zeljko Dokman wrote: > > Hi, I am trying to use this code to check VM

[ansible-project] Re: vsphere wait for vm powered off

2018-04-04 Thread Zeljko Dokman
Hi, I am trying to use this code to check VM power state and its failing for me with this error.. "msg": "The conditional check 'result.hw_power_status == \"POWERED OFF\"' failed. The error was: error while evaluating conditional (result.hw_power_status == \"POWERED OFF\"): 'dict object' has

[ansible-project] Re: vsphere wait for vm powered off

2016-11-15 Thread Dylan Silva
Thanks for that info! Just a heads up, we're deprecating the vsphere_guest module in a couple of releases. Please take a look at this post for more information. ~@thaumos On Tuesday, November 15, 2016 at 3:53:39