diff --git a/packer/ansible/roles/packages/tasks/sources.yml b/packer/ansible/roles/packages/tasks/sources.yml index 0392177..ee35322 100644 --- a/packer/ansible/roles/packages/tasks/sources.yml +++ b/packer/ansible/roles/packages/tasks/sources.yml @@ -1,7 +1,7 @@ --- -- name: install python-apt +- name: install python3-apt apt: - name: "python-apt" + name: "python3-apt" state: present - name: clear sources.list diff --git a/packer/debian-bullseye.yaml b/packer/debian-bullseye.yaml index aa82551..01c8f8a 100644 --- a/packer/debian-bullseye.yaml +++ b/packer/debian-bullseye.yaml @@ -67,6 +67,7 @@ provisioners: user: root ansible_env_vars: - "ANSIBLE_SSH_ARGS='-o HostkeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa'" + - "ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3" - inline: - rm /boot && mkdir /boot type: shell