The psrp connection plugin in Ansible 2.8 adds a reconnection_retries and reconnection_backoff option that allows you to retry a connection x amount of times on a ReadTimeout https://docs.ansible.com/ansible/devel/plugins/connection/psrp.html. You could try that out and see how it goes.
The docs jhawkesworth linked to showed you that it is possible possible to delay the reboot, you should be doing that then running win_reboot after installing the tools so Ansible handles the reboot for you. Thanks Jordan -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/803e101b-1ce1-4266-b0c1-14a66df7c7d5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.