From 12a4191489b52ed1ff802e320c6fd642f348f084 Mon Sep 17 00:00:00 2001 From: "noussair.hamrit" Date: Tue, 16 Jun 2026 17:59:10 +0200 Subject: [PATCH] export ANSIBLE_CONFIG --- .gitlab-ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 396da99..dfebb52 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,9 +5,8 @@ default: stages: - validate - deploy - -variables: - ANSIBLE_ROLES_PATH: "$CI_PROJECT_DIR/roles" +before_script: + - export ANSIBLE_CONFIG=$CI_PROJECT_DIR/ansible.cfg ansible-lint: stage: validate @@ -17,7 +16,6 @@ ansible-lint: syntax-check: stage: validate script: - - export ANSIBLE_CONFIG=$CI_PROJECT_DIR/ansible.cfg - ansible-playbook --syntax-check playbooks/openvpn.yml deploy-prod: