From e4651a15b4ac72372e28d188d84a3d9a5d77ea72 Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Mon, 11 Oct 2021 13:58:09 +1100
Subject: [PATCH] Try a differen way around known_hosts

---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 137289a6..7bde2a3c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -115,7 +115,8 @@ ansible_create_cluster_stage:
     - pwd
     - python3 ./make_files.py ./inventory.yml ./infra/os_vars.yml ./vars/versions.yml
     - ssh-keygen -R `cat ssh.cfg  | grep Proxy | cut -f 2 -d "@"`
-    - ssh `cat ssh.cfg  | grep Proxy | cut -f 2 -d "="` -i ./tmp_key -o StrictHostKeyChecking=no exit 0
+      #- ssh `cat ssh.cfg  | grep Proxy | cut -f 2 -d "="` -i ./tmp_key -o StrictHostKeyChecking=no exit 0
+    - export ANSIBLE_HOST_KEY_CHECKING=False
     - ansible-playbook -i inventory.yml --key-file ./tmp_key  upgrade_and_reboot.yml
     - ansible-playbook -i inventory.yml --key-file ./tmp_key  master_playbook.yml
     - sleep 15
-- 
GitLab