aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2021-01-19 19:22:24 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2021-01-19 19:27:54 +0100
commit1e59205900d8037d13290832625041f3edde0cac (patch)
tree55b36e220a03bc36d77b86213f59bd55e8cc27b6 /roles/space_server
parent48d0db45d2ac05e42f6219667008bf73ea41d19d (diff)
downloadlabitat-ansible-1e59205900d8037d13290832625041f3edde0cac.tar.gz
labitat-ansible-1e59205900d8037d13290832625041f3edde0cac.tar.xz
labitat-ansible-1e59205900d8037d13290832625041f3edde0cac.zip
space_server: ssh: add config for switches
Diffstat (limited to 'roles/space_server')
-rw-r--r--roles/space_server/files/ssh-switches.conf7
-rw-r--r--roles/space_server/tasks/main.yml10
2 files changed, 17 insertions, 0 deletions
diff --git a/roles/space_server/files/ssh-switches.conf b/roles/space_server/files/ssh-switches.conf
new file mode 100644
index 0000000..6fa6f48
--- /dev/null
+++ b/roles/space_server/files/ssh-switches.conf
@@ -0,0 +1,7 @@
+Host switch.s
+ User cisco
+ KexAlgorithms +diffie-hellman-group1-sha1
+
+Host bunkerswitch.s
+ User cisco
+ KexAlgorithms +diffie-hellman-group1-sha1
diff --git a/roles/space_server/tasks/main.yml b/roles/space_server/tasks/main.yml
index 112c4ce..3768d5e 100644
--- a/roles/space_server/tasks/main.yml
+++ b/roles/space_server/tasks/main.yml
@@ -9,6 +9,16 @@
tags:
- fstab
+- name: Extra ssh hosts
+ copy:
+ dest: '/etc/ssh/ssh_config.d/60-switches.conf'
+ src: ssh-switches.conf
+ owner: root
+ group: root
+ mode: 0644
+ tags:
+ - ssh
+
- import_tasks: kernel.yml
tags: kernel
- import_tasks: gettys.yml