From 8519cbbd05358254ae77fc835b6bdd4eb17f4411 Mon Sep 17 00:00:00 2001 From: jalr Date: Wed, 22 Dec 2021 19:37:28 +0000 Subject: [PATCH] Allow rsa keys for ssh --- packer/debian-bullseye.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packer/debian-bullseye.yaml b/packer/debian-bullseye.yaml index 7e02bc1..aa82551 100644 --- a/packer/debian-bullseye.yaml +++ b/packer/debian-bullseye.yaml @@ -65,6 +65,8 @@ provisioners: - playbook_file: ansible/playbook.yml type: ansible user: root + ansible_env_vars: + - "ANSIBLE_SSH_ARGS='-o HostkeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa'" - inline: - rm /boot && mkdir /boot type: shell