From 502189515326c29cac1f7a15523b48f7463b3f2a Mon Sep 17 00:00:00 2001 From: Chris Hines <chris.hines@monash.edu> Date: Mon, 11 Oct 2021 10:16:03 +1100 Subject: [PATCH] try to fix cache --- .gitlab-ci.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 33cd360d..2ef16be0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -102,9 +102,12 @@ build_cluster_cicd: ansible_create_cluster_stage: stage: ansible_create_cluster_stage - # cache: - #paths: - # - CICD/ + cache: + paths: + - CICD/inventory.yml + - CICD/tmp_key + - CICD/tmp_key.pub + - CICD/infra/os_vars.yml tags: - ansible script: @@ -114,8 +117,8 @@ ansible_create_cluster_stage: - ansible-playbook -i inventory.yml --key-file ../tmp_key.pem - sleep 15 - echo uglyuglyfix - - ansible -i inventory.yml --key-file ../tmp_key.pem -b -a "systemctl restart slurmdbd" ManagementNodes - - ansible -i inventory.yml --key-file ../tmp_key.pem -b -a "systemctl restart slurmctld" ManagementNodes + - ansible -i inventory.yml --key-file tmp_key -b -a "systemctl restart slurmdbd" ManagementNodes + - ansible -i inventory.yml --key-file tmp_key -b -a "systemctl restart slurmctld" ManagementNodes # - 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=0 ./nochange.log -c` ] > bashtest.sh # a crude way to make sure all changed lines are equal to changed=0 -- GitLab