You won't be able to run the ansible command on the Windows host itself as Ansible does not run as a controller on Windows. You can still use shell-local as that runs local to what is running Packer itself and not to the host being built itself, which in your case would be the MacOS host. In the end I've been able to create a wide range of Windows images using the virtualbox-iso provisioner on a Mac OS X and Fedora host using this method.
An example of how I did this using the default winrm connector as well as answer to a lot of the questions I had when it came to Packer and Windows can be at this blog post http://www.bloggingforlogging.com/2017/11/23/using-packer-to-create-windows-images/. -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/47540912-2be0-4b64-97e1-4b64e650ec3c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
