aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ansible.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'ansible.cfg')
-rw-r--r--ansible.cfg5
1 files changed, 5 insertions, 0 deletions
diff --git a/ansible.cfg b/ansible.cfg
index b7b380a..ee26434 100644
--- a/ansible.cfg
+++ b/ansible.cfg
@@ -4,4 +4,9 @@ stdout_callback = yaml
stderr_callback = yaml
[ssh_connection]
+# My connections are too flaky:
retries = 2
+# I cannot believe ServerAlive* are not set by Ansible by default:
+# https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-get-ansible-to-notice-a-dead-target-in-a-timely-manner
+# Also, forward the SSH agent.
+ssh_extra_args = -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -o ForwardAgent=yes -o StrictHostKeyChecking=no