I have a Windows based Packer.exe running the json file to provisioning new Windows image.
I want to put my Ansible playbook yaml file in the json file to configure the Windows image.
How can I call Ansible application to run playbook in json file? Ansible is on a Linux based machine. Packer is on a Windows based machine.
I tried all the playbook file on Packer machine (Windows) directly. It show me following error:
* Error running “ansible-playbook --version”: exec: “ansible-playbook”:
executable file not found in %PATH%
Guess I need to specific Ansible server address and credential somewhere?