From 66199cb0d267098af748891eb7843ff8a927ce9f Mon Sep 17 00:00:00 2001
From: handreas <andreas.hamacher@monash.edu>
Date: Wed, 22 Apr 2020 09:48:34 +0000
Subject: [PATCH] I can only rerun the playbook in the build stage because
 artefacts get cleaned up between stages

Former-commit-id: be15761c484937676a3a5cb9909260e778f939cf
---
 .gitlab-ci.yml | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 86bba14c..65582491 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -112,9 +112,10 @@ ansible_create_cluster_stage:
     - sleep 15
     - echo uglyuglyfix
     - ansible -i files/inventory.$STACKNAME --key-file ../gc_key.pem -b -a "systemctl restart slurmdbd" ManagementNodes
-    - sleep 60
-    - echo do it again
-    - ansible-playbook -i files/inventory.$STACKNAME --key-file ../gc_key.pem --skip-tags monitoring master_playbook.yml
+    - cd plays
+    - ansible-playbook -i files/inventory.$STACKNAME --key-file ../gc_key.pem --skip-tags monitoring computenodes.yml | tee nochange.log
+    - echo [ `grep changed= ./nochange.log -c` = `grep changed=1 ./nochange.log -c` ] > bashtest.sh   # a crude way to make sure all changed lines are equal to changed=0
+    - bash ./bashtest.sh
     
 
 tests:
@@ -148,10 +149,6 @@ tests:
     - bash -e ./tests/run_tests.sh NFSNodes "files/inventory.$STACKNAME" "../gc_key.pem"
     - bash -e ./tests/run_tests.sh SQLNodes "files/inventory.$STACKNAME" "../gc_key.pem"
     - bash -e ./tests/run_tests.sh slurm "files/inventory.$STACKNAME" "../gc_key.pem"
-    - cd plays
-    - ansible-playbook -i files/inventory.$STACKNAME --key-file ../gc_key.pem --skip-tags monitoring computenodes.yml | tee nochange.log
-    - echo [ `grep changed= ./nochange.log -c` = `grep changed=1 ./nochange.log -c` ] > bashtest.sh   # a crude way to make sure all changed lines are equal to changed=0
-    - bash ./bashtest.sh
     
 extended:
   stage: extended
-- 
GitLab