Commit Graph

5 Commits (0828028c71bb5273a6796c0c47f93cf23b818471)

Author SHA1 Message Date
Hugh Saunders 2e07567c16 Retry exec command via ssh_retry
This PR adds the option to retry failed ssh executions, if the failure
is caused by ssh itself, not the remote command. This can be helpful if
there are transient network issues. Retries are only implemented in the
openssh connection plugin and are disabled by default. Retries are
enabled by setting ssh_connection > retries to an integer greater
than 0.

Running a long series of playbooks, or a short playbook against a large
cluster may result in transient ssh failures, some examples logged
[here](https://trello.com/c/1yh6csEQ/13-ssh-errors).

Ansible should be able to retry an ssh connection in order to survive
transient failures.

Ansible marks a host as failed the first time it fails to contact it.
10 years ago
Brian Coca 0913b8263c made special treatment of certain filesystem for selinux configurable 10 years ago
Brian Coca 8fdf9ae59b moved module_doc_fragments to v2 10 years ago
James Cammarata 249fd2a7e1 Re-adding submodules after moving things around 10 years ago
James Cammarata ce3ef7f4c1 Making the switch to v2 10 years ago