is there a way to use if/else in packer hcl?
I tryed: link without success.
Specifically, I currently have two *.hcl one to build images with “bios” and another to build “EFI”. My goal is to have only one file and to set the variables for the EFI boot image creation only if the variable EFI == true.
PS: If someone has already solved this, I would also appreciate a Git* - link.