aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-10-11 13:58:08 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-10-11 13:58:08 +0300
commite8528b6c164735d6f0cad018dac0ed0ea91d0c24 (patch)
treefbd5d0eb949ccfb0c1d43fedbc36c94ca5651bc6
parentinventory: set ServerAlive* ssh variables (diff)
downloadmaintenance-e8528b6c164735d6f0cad018dac0ed0ea91d0c24.tar.gz
maintenance-e8528b6c164735d6f0cad018dac0ed0ea91d0c24.zip
inventory: -o ForwardAgent=yes
Diffstat (limited to '')
-rw-r--r--inventory.ini3
1 files changed, 2 insertions, 1 deletions
diff --git a/inventory.ini b/inventory.ini
index fe27a85..b4258a4 100644
--- a/inventory.ini
+++ b/inventory.ini
@@ -14,4 +14,5 @@ vpn ansible_host=192.168.205.254 ansible_port=80 ansible_user=algo
ansible_user=egor
# 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
-ansible_ssh_extra_args=-o ServerAliveInterval=15 -o ServerAliveCountMax=3
+# Also, forward the SSH agent.
+ansible_ssh_extra_args=-o ServerAliveInterval=15 -o ServerAliveCountMax=3 -o ForwardAgent=yes