[ansible-project] Re: Use of vmware_guest module

2018-08-16 Thread Dimitri Yioulos
Doing this" --- - hosts: localhost gather_facts: false *serial: 1* vars: ~ doesn't seem to help. Any help would be appreciated. On Tuesday, August 14, 2018 at 3:38:03 PM UTC-4, Dimitri Yioulos wrote: > > Hello, all. > > I need to create a playbook which will include shutting down, the

[ansible-project] Re: Use of vmware_guest module

2018-08-15 Thread Dimitri Yioulos
Further question: With the play written as follows: --- - hosts: localhost gather_facts: false vars: vsphere_host: 10.0.101.17 vsphere_username: user vsphere_password: password vm_state: poweredon #poweredon shutdownguest restarted tasks: - name: Boot VMWare Guest

[ansible-project] Re: Use of vmware_guest module

2018-08-14 Thread Dimitri Yioulos
I'll answer my own question - yes "with_items" works, and in the order in which the items are listed. On Tuesday, August 14, 2018 at 3:38:03 PM UTC-4, Dimitri Yioulos wrote: > > Hello, all. > > I need to create a playbook which will include shutting down, then > restarting, six virtual machines.

[ansible-project] Re: Use of vmware_guest module

2018-08-14 Thread Dimitri Yioulos
As in "with_items". If so, would the shut-downs/start-ups be in the order of the "with_items" list? On Tuesday, August 14, 2018 at 3:38:03 PM UTC-4, Dimitri Yioulos wrote: > > Hello, all. > > I need to create a playbook which will include shutting down, then > restarting, six virtual machines.