Problems using Packer and Ansible with WinRM Connection

I added this to build in my buildspec.yml

  • echo “Building HashiCorp Packer template, win2019.json”
  • export POWERSHELL_VERSION=""
  • ./packer build win2019.json

That and I upgraded to a newer version of packer and that did it: