From 1e59205900d8037d13290832625041f3edde0cac Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Tue, 19 Jan 2021 19:22:24 +0100 Subject: space_server: ssh: add config for switches --- roles/space_server/files/ssh-switches.conf | 7 +++++++ roles/space_server/tasks/main.yml | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 roles/space_server/files/ssh-switches.conf 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 -- cgit v1.2.1