You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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
Brian Coca
unread,
Feb 10, 2016, 11:06:57 PM2/10/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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.