Fix Ansible file transfer issue

Fixes `failed to transfer file` issue

See https://github.com/hashicorp/packer/issues/11783
This commit is contained in:
Jakob Lechner 2023-01-01 14:56:44 +00:00
parent 14f8fbf150
commit 5c507550a1
No known key found for this signature in database
GPG key ID: 996082EFB5906C10

View file

@ -70,6 +70,9 @@ provisioners:
ansible_env_vars:
- "ANSIBLE_SSH_ARGS='-o HostkeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa'"
- "ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3"
extra_arguments:
- "--scp-extra-args"
- "'-O'"
- inline:
- rm /boot && mkdir /boot
type: shell