From fbebe4c2cff71bd8b090ef44b8a36a6db7909d23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Tue, 16 Nov 2021 09:52:01 +0100 Subject: [PATCH] packer: adjust ansible playbook filepath MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want an absolute path, otherwise packer doesn't know where to find the playbook if called from a wrong directory. Signed-off-by: Ondřej Budai --- templates/packer/composer.pkr.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/packer/composer.pkr.hcl b/templates/packer/composer.pkr.hcl index 70e132bcf..071469f67 100644 --- a/templates/packer/composer.pkr.hcl +++ b/templates/packer/composer.pkr.hcl @@ -49,7 +49,7 @@ build { sources = ["source.amazon-ebs.image_builder"] provisioner "ansible" { - playbook_file = "ansible/playbook.yml" + playbook_file = "${path.root}/ansible/playbook.yml" extra_arguments = [ "-e", "COMPOSER_COMMIT=${var.composer_commit}", "-e", "OSBUILD_COMMIT=${var.osbuild_commit}",