From 8f48c0c09c81c309888022c0383257c60ab4f30a Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Thu, 16 Jun 2016 09:43:44 +0200
Subject: [PATCH] Improve ssh config definition

---
 defaults/main.yml    | 1 +
 templates/ssh_config | 8 +++++---
 2 files changed, 6 insertions(+), 3 deletions(-)
 create mode 100644 defaults/main.yml

diff --git a/defaults/main.yml b/defaults/main.yml
new file mode 100644
index 0000000..e7f24ef
--- /dev/null
+++ b/defaults/main.yml
@@ -0,0 +1 @@
+tunnel_user_name: 'systunnel'
diff --git a/templates/ssh_config b/templates/ssh_config
index d4bef33..af81dc0 100644
--- a/templates/ssh_config
+++ b/templates/ssh_config
@@ -1,13 +1,15 @@
 # See all parameters at http://www.openbsd.org/cgi-bin/man.cgi?query=ssh_config
 
 StrictHostKeyChecking no
-ForwardAgent yes
+ForwardAgent no
 
 {% for host in commonauth_extras|default([]) %}
-{% if host.certfile is defined %}
+{% if host.ssh is defined %}
 {% for name in host.names %}
 Host {{ name }}
-  IdentityFile ~/.ssh/{{ host.certfile }}
+{% for key, value in host.ssh.iteritems() %}
+  {{ key }} {{ value }}
+{% endfor %}
 
 {% endfor %}
 {% endif %}
-- 
GitLab