From 3f142f1e7b7916b1c33d82b2c43112ce49472d32 Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Mon, 11 Oct 2021 13:26:20 +1100
Subject: [PATCH] fix path to tmp_key

---
 .gitlab-ci.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6f7a71cb..137289a6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -115,9 +115,9 @@ 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 "="` -l ubuntu -o StrictHostKeyChecking=no exit 0
-    - 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
+    - ssh `cat ssh.cfg  | grep Proxy | cut -f 2 -d "="` -i ./tmp_key -o StrictHostKeyChecking=no exit 0
+    - 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
     - echo uglyuglyfix
     - ansible -i inventory.yml --key-file tmp_key -b -a "systemctl restart slurmdbd" ManagementNodes
-- 
GitLab