summaryrefslogtreecommitdiff
path: root/roles/dyndns/client/templates/ssh_config.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-01-12 03:30:30 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-01-12 03:30:30 +0100
commit83e27ac758c38ffd9931ef8830e0256e772e5881 (patch)
tree69c9637f488f5db46bacd6b0c47705e4c0309a9e /roles/dyndns/client/templates/ssh_config.j2
parentelevate/media: minor cleanup and fixes (diff)
added dyndns client role
Diffstat (limited to 'roles/dyndns/client/templates/ssh_config.j2')
-rw-r--r--roles/dyndns/client/templates/ssh_config.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/dyndns/client/templates/ssh_config.j2 b/roles/dyndns/client/templates/ssh_config.j2
new file mode 100644
index 00000000..fd15bc49
--- /dev/null
+++ b/roles/dyndns/client/templates/ssh_config.j2
@@ -0,0 +1,6 @@
+Host {{ hostvars[dyndns_server].host_name }}.{{ hostvars[dyndns_server].host_domain }}
+ Port {{ hostvars[dyndns_server].ansible_port }}
+ User {{ hostvars[dyndns_server].user | default('dyndns') }}
+ IdentityFile {{ dyndns_user.ssh_key_file }}
+ IdentitiesOnly yes
+ PasswordAuthentication no