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