diff --git a/packer/debian-bullseye.yaml b/packer/debian-bullseye.yaml index 8ac119d..f4dcc0e 100644 --- a/packer/debian-bullseye.yaml +++ b/packer/debian-bullseye.yaml @@ -63,13 +63,15 @@ provisioners: type: shell - inline: - apt-get -y install openssh-server python lsb-release + - mkdir -p /root/.ansible/tmp 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" + - "ANSIBLE_VERBOSITY=4" - inline: - rm /boot && mkdir /boot type: shell