Member-only story

Start a VMware vSphere Virtual Machine — Ansible module vmware_guest_powerstate

How to automate the change of power state from Powered Off to Powered On of the virtual machine guest “myvm” using Ansible Playbook and vmware_guest_powerstate module.

Luca Berton
5 min readMay 17, 2022

How to Start a VMware vSphere Virtual Machine with Ansible?

I’m going to show you a live demo and some simple Ansible code.

I’m Luca Berton and welcome to today’s episode of Ansible Pilot.

Ansible Start a VMware vSphere Virtual Machine

  • `community.vmware.vmware_guest_powerstate`
  • Manages power states of virtual machines in vCenter

Let’s talk about the Ansible module `vmware_guest_powerstate`.

The full name is `community.vmware.vmware_guest_powerstate`, which means that is part of the collection of modules to interact with VMware, community-supported.

Manages power states of virtual machines in vCenter.

Parameters

  • hostname string / username string /…

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

No responses yet