My Ansible AWS EC2 instance creation script gives this error.
“Timeout when waiting for 172.31.25.6:22”}
to retry, use: --limit @/root/instance/provision-ec2.retry
this code is causing problem, Please let me know, how to solve this.
- name: Wait for the instances to boot by checking the ssh port
wait_for: host={{item.private_ip}} port=22 delay=60 timeout=220 state=started
with_items: “{{ ec2.instances }}”