From a7d47cfc6cb65a4f8eb8cafae3824c2aad633106 Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Mon, 11 Oct 2021 15:27:43 +1100
Subject: [PATCH] still nto sure whats wrong

---
 .gitlab-ci.yml                | 2 +-
 CICD/pre_templates/ssh_cfg.j2 | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8a2b69c5..045faa23 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -123,7 +123,7 @@ ansible_create_cluster_stage:
     - cat ansible.cfg
     - cat ssh.cfg
     - ansible -i inventory.yml -m ping 'all'
-      #- ssh `cat ssh.cfg  | grep Proxy | cut -f 2 -d "="` -i ./tmp_key -o StrictHostKeyChecking=no exit 0
+    - ssh -vvv `cat ssh.cfg  | grep Proxy | cut -f 2 -d "="` exit 0
     - export ANSIBLE_HOST_KEY_CHECKING=False
     - ansible-playbook -i inventory.yml upgrade_and_reboot.yml
     - ansible-playbook -i inventory.yml master_playbook.yml
diff --git a/CICD/pre_templates/ssh_cfg.j2 b/CICD/pre_templates/ssh_cfg.j2
index dd4c491c..701f5eba 100644
--- a/CICD/pre_templates/ssh_cfg.j2
+++ b/CICD/pre_templates/ssh_cfg.j2
@@ -4,4 +4,6 @@ Host 192.168.*
     ServerAliveInterval 60
     ControlMaster auto
     ControlPath ~/.ssh/%r@%h:%p
+    UserKnownHostsFile ./known_hosts
+    GlobalKnownHostsFile /dev/null
 
-- 
GitLab