From fa0199183a2b637de3ae5fe8dae048992ea07534 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sat, 5 Nov 2022 12:31:34 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aab1690..9dd87fc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -104,10 +104,10 @@ k3s-update: extends: .ansible_apply before_script: - cat $ansible > $WORKDIR/ansible - #rules: - # - if: $CI_PIPELINE_SOURCE == "schedule" - # when: always - # - when: never + rules: + - if: $CI_PIPELINE_SOURCE == "schedule" + when: always + - when: never #destroy: @@ -138,15 +138,4 @@ k3s-update: # - terraform.tfvars # - jobs/main.yml # when: manual -# -#ansible-update: -# stage: apply -# image: -# name: ubuntu:latest -# script: -# - apt update && apt install ansible -y -# - ansible-galaxy install -r $CI_PROJECT_DIR/group_vars/requirements.yml -# - ansible-playbook $CI_PROJECT_DIR/jobs/update.yml -# rules: -# - if: $CI_PIPELINE_SOURCE == "schedule" -# when: always +