This is being tracked in https://github.com/ansible/ansible/issues/57542
The problem is that Ansible ssh pipelining does not work with the packer
ssh proxy. To a further extent, the new python interpreter discovery in
ansible 2.8 uses pipelining.
You can set
I can ssh to the public IP address of the Packer AMI but Ansible being run
as a provisioner in Packer shows this log:
amazon-ebs: <127.0.0.1> ESTABLISH SSH CONNECTION FOR USER: ubuntu
amazon-ebs: <127.0.0.1> SSH: EXEC ssh -vvv -o IdentitiesOnly=yes -o
StrictHostKeyChecking=no -o