Am Sonntag, 23. Februar 2020 11:28:45 UTC+1 schrieb Kai Stian Olstad: > > 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. > > Thanks. cool
-- 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/95a3c7eb-b90c-4ce6-a382-e3754fba8e65%40googlegroups.com.
