I have an autoscaling group on Amazon EC2 and I have added my public key when I create AMI with packer so I can run ansible-playbook and ssh to the hos
EC2
packer
I solved it by running ssh-add once and use it like if it's not password protected.
ssh-add