Hi Team,

I have a bit silly question, is there a way to run a task before every 
tasks?

Like a hook but not in python.

My purpose is that I would insert a wait_for the DNS to come up. Our DNS 
server is sometimes reloaded/restarted so when ansible get into a task at 
that exact bad time it will error right away with message: host not found. 
I want it to be a bit more resilient, saying if fail for dns wait a bit 
more and try again about 3 or 4 seconds before giving up.

Kind regards

-- 
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/16e995a8-f8ac-4765-8928-2e9a60396db8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to