Member-only story

Add a New Hard Disk to VMware vSphere Virtual Machine — Ansible module vmware_guest_disk

How to automate the addition of a 1GB size Hard Disk to VMware Virtual Machine guest named “myvm” using Ansible Playbook and vmware_guest_disk module.

Luca Berton
5 min readMay 24, 2022

How to Add a new hard disk to 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 Add disk to VMware vSphere Virtual Machine

  • `community.vmware.vmware_guest_disk`
  • Manage disks related to virtual machines in given vCenter infrastructure

Let’s talk about the Ansible module `vmware_guest_disk`.
The full name is `community.vmware.vmware_guest_disk`, which means that is part of the collection of modules to interact with VMware, community-supported.
It manages disks related to the virtual machines in a given vCenter infrastructure.

Parameters

--

--

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