From c4d85da50110aa549751b2c7ef101b4382e56f7c Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sat, 5 Nov 2022 11:49:22 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 45 +++++++++++++-------------------------------- 1 file changed, 13 insertions(+), 32 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9d0cb61..16b09de 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -78,26 +78,20 @@ k3s-dns: when: always - when: never +k3s-update: + stage: build + variables: + WORKDIR: $CI_PROJECT_DIR/ansible + FILE: update.yml + REQUIREMENTS: requirements.yml + allow_failure: false + extends: .ansible_apply + rules: + - if: $CI_PIPELINE_SOURCE == "schedule" + when: always + - when: never + -#ansible-apply: -# stage: apply -# variables: -# DEBIAN_FRONTEND: noninteractive -# K8S_AUTH_KUBECONFIG: config -# 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/main.yml -# needs: -# - apply -# only: -# changes: -# - terraform.tf -# - terraform.tfvars -# - jobs/main.yml -# #destroy: # stage: destroy # image: @@ -138,16 +132,3 @@ k3s-dns: # rules: # - if: $CI_PIPELINE_SOURCE == "schedule" # when: always -# -#ansible-update-dns: -# 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/dns.yml -# only: -# changes: -# - jobs/dns.yml -#