If the connection closes ansible-playbook will mark the host as 'unreachable' and remove it from the rest of the play, the task depends a lot on the module, most of the fie based modules do atomic operations so should leave the system in a consistent state (though you might have some temp files left over).
In 2.0 we added retry logic to the ssh connection plugin which could be used to prevent the host from becoming 'unreachable'. For such a setup you can also look at using ansible-pull and have the devices attempt to download their plays and data, once that happens they can run the playbook locally w/o worrying about interruptions. -- 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/CAJ5XC8k%2B3twO5btV9Y8GvEX9Lg6yyxhiR50TFqVnUeoRVEGE-A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
