Packer with Ansible provisioner on a Windows build server

Hello,

Does the provisioner ansible work when you are running on a Windows build server?

Reading here, to me it sounds like it spins it up but I could be wrong.

When I try to run it, I get this error.

  • Error running “ansible-playbook --version”: exec: “ansible-playbook”: executable file not found in %PATH%

I believe Ansible can manage windows guests, but cannot be run on a windows host; so if Packer is running on a windows machine the ansible provisioner won’t work for you. Windows Frequently Asked Questions — Ansible Documentation