Depends ... but if using defaults (ssh with control persist enabled) you should have the persistent connection still at task2 for both hosts ... unless the time between tasks is greater than the connection timeout (60s) ... which should only happen if you are processing a LOT of hosts at a time. In those cases you normally want to restrict the play targets or use serial batches.
-- ---------- Brian Coca -- 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/CACVha7cdcrRks-CbLLLt_Sm-iqE5jjumLmjPwktEcDhQyE8t2A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
