Packer build with qemu builder and ansible provisioner


I’m trying to build CentOS 7/8 templates with packer on GCP.

Already achieved template building for CentOS 7/8 on prem with vsphere-iso
builder and ansible-provisioner.

Now on GCP I need to replace the vspher-iso builder with the qemu builder.

It seems that the ansible provisioner is executed before the end of qemu builder.

my code

I don’t know if I miss an option in the qemu builder to delay the provisioner part.

Does anyone have experience with this setup?


This topic can be closed, it was a misunderstanding on my part.
The communicator option that was set to none in my packer template needs to be removed and the ssh_username and ssh_password options needs to be set.