Fix Ansible file transfer issue
Fixes `failed to transfer file` issue See https://github.com/hashicorp/packer/issues/11783
This commit is contained in:
parent
14f8fbf150
commit
5c507550a1
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue