From 4c630b5860d93757569903b10d08b7dfe55c690c Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Thu, 7 Jul 2022 19:36:12 +0000 Subject: [PATCH] Fix ansible provisioner See: - https://github.com/ansible/ansible/issues/74072 - https://github.com/hashicorp/packer/issues/6379 --- packer/debian-bullseye.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer/debian-bullseye.yaml b/packer/debian-bullseye.yaml index 8ac119d..121eaaf 100644 --- a/packer/debian-bullseye.yaml +++ b/packer/debian-bullseye.yaml @@ -66,7 +66,7 @@ provisioners: type: shell - playbook_file: ansible/playbook.yml type: ansible - user: root + user: "{{user `ssh_user`}}" ansible_env_vars: - "ANSIBLE_SSH_ARGS='-o HostkeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa'" - "ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3"