From 5c507550a16ed0150e8313363777084826ec45a5 Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Sun, 1 Jan 2023 14:56:44 +0000 Subject: [PATCH] Fix Ansible file transfer issue Fixes `failed to transfer file` issue See https://github.com/hashicorp/packer/issues/11783 --- packer/debian-bullseye.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packer/debian-bullseye.yaml b/packer/debian-bullseye.yaml index 8ac119d..0a7285a 100644 --- a/packer/debian-bullseye.yaml +++ b/packer/debian-bullseye.yaml @@ -70,6 +70,9 @@ provisioners: ansible_env_vars: - "ANSIBLE_SSH_ARGS='-o HostkeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa'" - "ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3" + extra_arguments: + - "--scp-extra-args" + - "'-O'" - inline: - rm /boot && mkdir /boot type: shell