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"