summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Janczyk2024-10-31 17:40:13 +0100
committerMichael Janczyk2024-10-31 17:40:13 +0100
commit9d97c4273b63a0f8d73c41206878002788b51e1f (patch)
treeef6c018d4e73b67f78f3eb29dd5209e525953565
parentRemove Makefile, we do not need it for CI. (diff)
downloadpacker-templates-9d97c4273b63a0f8d73c41206878002788b51e1f.tar.gz
packer-templates-9d97c4273b63a0f8d73c41206878002788b51e1f.tar.xz
packer-templates-9d97c4273b63a0f8d73c41206878002788b51e1f.zip
refactor(packer): Update ansible provisioner configuration
-rw-r--r--base.pkr.hcl9
1 files changed, 8 insertions, 1 deletions
diff --git a/base.pkr.hcl b/base.pkr.hcl
index 0a7ec92..63c5ecc 100644
--- a/base.pkr.hcl
+++ b/base.pkr.hcl
@@ -18,7 +18,14 @@ packer {
build {
name = "base"
sources = ["source.qemu.ansible"]
-
+
+ provisioner "ansible" {
+ extra_arguments = ["--ssh-extra-args", "-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa", "--scp-extra-args", "\"-O\"", "${var.ansible_extra_arguments}"]
+ playbook_file = "${var.playbook_file}"
+ sftp_command = "/usr/libexec/openssh/sftp-server"
+ use_sftp = false
+ }
+
post-processor "manifest" {
output = "${var.output_directory}/manifest.json"
}