Deploy a VMware vSphere Virtual Machine from a Template - Ansible module vmware_guest
By Luca Berton · Published 2024-01-01 · Category: troubleshooting
How to automate the deployment of a virtual machine guest from “mytemplate” template using Ansible Playbook and vmware_guest module.
How to Deploy a VMware vSphere Virtual Machine from a Template with Ansible? I'm going to show you a live Playbook and some simple Ansible code. I'm Luca Berton and welcome to today's episode of Ansible Pilot
Ansible Deploy a VMware vSphere Virtual Machine from a Template • community.vmware.vmware_guest • Manages virtual machines in vCenter
Let's talk about the Ansible module vmware_guest. The full name is community.vmware.vmware_guest, which means that is part of the collection of modules to interact with VMware, community-supported. It's a module pretty stable and out for years. It manages virtual machines in vCenter.
Parameters The module vmware_guest has a very long list of parameters to customize all your needs to create a VMware vSphere Virtual Machine. Please refer to the manual for the full list.
Links • community.vmware.vmware_guest
## Playbook How to Deploy a VMware vSphere Virtual Machine from a Template with Ansible. I'm going to show you how to deploy a Virtual Machine named "myvm" from a template "mytemplate" without any customization.
code • vm_deploy_template.yml • vars.yml • inventory
execution
idempotency
after execution
!ansible_module_vmware_guest after execution
Conclusion Now you know how to Deploy a VMware vSphere Virtual Machine from a Template with Ansible.
Related Articles • Ansible Template Guide • Ansible Become Guide • Ansible Inventory Guide
Category: troubleshooting
Watch the video: Deploy a VMware vSphere Virtual Machine from a Template - Ansible module vmware_guest — Video Tutorial