I’m reading Ansible Provisioner | Integrations | Packer | HashiCorp Developer, which has this description of one of the parameters:
command
(string) - The command to invoke ansible. Defaults toansible-playbook
. If you would like to provide a more complex command, for example, something that sets up a virtual environment before calling ansible, take a look at the ansible wrapper guide below for inspiration. Please note that Packer expects Command to be a path to an executable. Arbitrary bash scripting will not work and needs to go inside an executable script.
However as far as I can see, that’s the only mention of a wrapper guide. Does it still exist somewhere?