I am running 2.0 RC1 and having issues when trying to use the Wait_for 
module in a script. I have this specified in my playbook:

  - name: wait on reboot

    local_action: wait_for host={{ ansible_ssh_host }} port={{ 
ansible_ssh_port }} delay=30 timeout=180 state=started


Which I copied from others and seems like it should be correct. However I 
get this error and it doesn't seem to be working correctly. Not sure what I 
am doing wrong as it seems to be pulling the Ansible host that I am using 
for the playbook and not the host from the inventory that it should be.


fatal: [1.1.1.1 -> localhost]: FAILED! => {"changed": false, "elapsed": 
180, "failed": true, "invocation": {"module_args": {"delay": "30", "host": 
"localhost", "port": 5986, "state": "started", "timeout": "180"}, 
"module_name": "wait_for"}, "msg": "Timeout when waiting for 
localhost:5986"}

-- 
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/25f102a9-bba4-4b19-9cba-385eb2fb6be6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to