Hello. I have a quick question, new to how Packer works, read the documentation but it did not really help me with this. I am trying to better understand how I can tie in Ansible as part of a provisioning step in building images.
If I want to run an Ansible playbook as a “provisioner” and I can’t reach an Ansible controller, is it possible to run the Ansible playbooks locally on my workstation?
What is the best approach to doing that? Do I need to point it to a controller? Do I have to install Ansible on the target machine first and push the playbook files somehow to the target I am building?
I want to try and “bake-in” as much as I can to the image before rolling it out. I know I can run some CI-CD tools after, again trying to get as much pre-configured as possible.
Any advice would be greatly appreciated. Thank you.