In this article i’m going to shar the steps of deploy a vm using ansible playboook
I’m using two yaml files for this excersice.
in the vars.yml file I”m proving the vcenter environment details as a variables.
I have defined vcener fqdn,datacenter name, credential and vm template name.
Also I have disabled ssl verification sing vcenter_validate_certs: false parameter. The reason is we are using self sign ssl in our vcenter and its not trusted in the linux vm which i’m using to run this playbook.
in the second yml file(vm_deploy.yml).In this playbook i’m grabbing inputs from vars.yml. Other than that Ive added vmname , folder name , power state and wait for ip option here.
Powercli is a command line tool which based on Windows PowerShell. We can use it for automate our tasks. This article will show some of the valuable comnmads we can use to manage our vSAN infrastructure.
1. First will check what are the available command in powercli relate to the vSAN
2. We can check the health of vSAN cluster
3. We can get the vSAN cluster configuration using below command
4. Using Get-VsanDiskGropu command we can get disk group details