This project will create identical images for vsphere and deploy vm on vsphere with terraform-module provisioning by ansible
Build a basic Ubuntu VM from an iso image with packer hashicorp
Install builder
packer init .
make sure your configuration is syntactically valid by using the packer validate command.
packer validate .
Build the image with the packer build command.
packer build .
Install provider
terraform init
The terraform plan command creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure
terraform plan
The terraform apply command is used to apply the changes required to reach the desired state of the configuration
terraform apply