We have a packer build that calls an ansible provisioner, but 2 out of 3 engineers keep failing on ansible ssh’ing to new vm it is creating.
It is failing on this step where ansible is trying to move a tmp file it needs from the engineers local to the new vm.
vsphere-clone.linux-ubuntu: fatal: [default]: FAILED! => {“msg”: “failed to transfer file to /Users/ap428/.ansible/tmp/ansible-local-85466jpdr2g2n/tmp2uooe8cf /home//.ansible/tmp/ansible-tmp-1713966824.0018728-85474-206464356620374/AnsiballZ_setup.py:\n\n”}
vsphere-clone.linux-ubuntu:
vsphere-clone.linux-ubuntu: PLAY RECAP *********************************************************************
vsphere-clone.linux-ubuntu: default : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
vsphere-clone.linux-ubuntu:
==> vsphere-clone.linux-ubuntu: Error executing Ansible: Non-zero exit status: exit status 2
The only thing different between the 3 that we can find is the Mac OS. The one that works is using Monterey. The two that fail, one is on Ventura and the other is on Sonoma. Has anyone else seen this or have any ideas of how to get around it? We have tried everything we have found on google so far and nothing has worked.