>
>     - name: Wait for SSH                                                  
>          
>
>       delegate_to: <bastion ip>                                          
>           
>
>       wait_for:                                                           
>          
>
>         host={{ item.private_ip }}                                        
>          
>
>         port=22                                                           
>          
>
>         state=started                                                     
>          
>
>       with_items: ec2.instances 
>

I have tried delegating the wait_for, and with debug on, I can see that the 
task is being run on the bastion host. I am still having the same issue.

While it is stuck on the wait_for task, i can ssh from the bastion to the 
new instance, so I know it's not a timing issue, and as soon as the task 
fails, I can ssh directly from my ansible host.

I can get around the issue by removing the wait_for and use a pause task, 
but i'd like to know what i'm doing wrong.



On Tuesday, June 16, 2015 at 8:34:02 PM UTC-4, Brian Coca wrote:
>
> That makes sense since wait_for does not have direct access (it just 
> uses a socket call), you might need to delegate the wait for to the 
> bastion machine. 
>
> -- 
> Brian Coca 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f1ef2b2d-6151-42a1-a386-97d97c47e764%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to