Ansible module for VM workstation to PowerOn & PowerOff

139 views
Skip to first unread message

Mohan

unread,
Jul 25, 2022, 7:59:55 AM7/25/22
to Ansible Project
Hello Community members,

I’m using vmware workstation version 15.0.0 on Ubuntu-20.04-LTS machine.

We have deployed VM workstation based Windows-10 machines in that. I want to know which ansible module we can use to PowerOn and PowerOff windows-10 virtual machines from workstation?

I was searching online to find ansible module for the same, However i couldn’t find the ideal document. So please let me know module in ansible?

Will McDonald

unread,
Jul 25, 2022, 8:10:56 AM7/25/22
to ansible...@googlegroups.com
https://github.com/qsypoq/Ansible-VMware-Workstation-Fusion-Pro-Modules looks like it wraps vmrest.exe which would allow you to control the power state of VMs.

You could also, more crudely, just stop/start using vmrun.exe [stop|suspend|start] <path to .vmx> and wrap that with command/shell/win_powershell.


--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/adc99c80-db2e-4f06-ad1a-5db1a5dbfb5bn%40googlegroups.com.

Mohan

unread,
Jul 25, 2022, 8:28:54 AM7/25/22
to ansible...@googlegroups.com
Okay. Thank you very much. I'll check it out.

You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/JUarxotNpyY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAKtKohSzTRcg6Xeptx84X-m0PgJJVoQLhkWCEpVAYK4Qc%3DAaGw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages