-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ansible provisioner fails with "failed to transfer file" #110
Comments
After some testing with solution presented in: hashicorp/packer#11783 (comment) To handle it properly use |
This seems to be same issue as #100 . hashicorp/packer#11783 (comment) mentioned another workaround: Add
[ssh_connection]
transfer_method = smart This will work, but generate lots of warnings. |
My ansible.cfg working with Ubuntu 22.10 + openssh-server 9.0p1:
|
Also seeing this issue with packer 1.8.4 against RHEL 8.6 + OpenSSH 8.0p1 The specific error message: Minimum change to resolve was adding |
This issue was originally opened by @stefangweichinger in hashicorp/packer#11783 and has been migrated to this repository. The original issue description is below.
Community Note
When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.
Overview of the Issue
I have a packer config using the virtualbox-iso builder for building Debian VMs.
This config uses the ansible provisioner and worked fine before.
Recently I see failed builds because the provisioning step fails:
Reproduction Steps
Run "packer build" with a packer build using the ansible provisioner.
Packer version
1.8.0
Simplified Packer Template
the part with the provisioner:
These extra_args come from fixing an issue with ssh not able to log into the created VM.
If I comment these vars it fails as well, but with another issue around "host key type" (yes, I found the related issue, that's where my extra_vars come from).
Operating system and Environment details
Fedora 36 Workstation, VirtualBox 6.1.34
The text was updated successfully, but these errors were encountered: