# Unstable network

**URL:** <https://forum.ansible.com/t/unstable-network/19793>\
**Category:** Ansible Project\
**Created:** [November 18, 2015, 3:16pm UTC](https://forum.ansible.com/t/unstable-network/19793 "2015-11-18T15:16:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karljohanreite](https://avatars.discourse-cdn.com/v4/letter/k/b19c9b/32.png) [@karljohanreite](https://forum.ansible.com/u/karljohanreite)\
**Post date:** [November 18, 2015, 3:16pm UTC](https://forum.ansible.com/t/unstable-network/19793/1 "2015-11-18T15:16:22Z")

</div>

Hi,

We are facing a situation where we have servers with slow and unstable network connections. This is because the network is provided by GSM modems onboard moving vessels.

Does anyone know how Ansible will handle a situation where the network may fall out during deployment? Will the deployment happen in a somewhat atomic way, or will the deployment be abruptly aborted if the ssh channel terminates?

I appreciate any insights or suggestions on this.

Thank you.

kj

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 11, 2016, 4:06am UTC](https://forum.ansible.com/t/unstable-network/19793/2 "2016-02-11T04:06:50Z")

</div>

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.
