On Sun, Feb 23, 2020 at 02:10:32AM -0800, Heinz Meier wrote:
> need to wait until a host is up and running. This host does not (yet) offer 
> ssh, so I need a simple ping. The module wait_for only offers port tests, 
> as far as I can see. Any ideas?

You can use the until on a task

  - command: ping -c1 <host>
    register: r
    until: r.rc == 0

You can also change retries and delay, check the documentation for details.

-- 
Kai Stian Olstad

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20200223102828.7mdyehypvxrkpy43%40olstad.com.

Reply via email to