From 95a8cbd363b8183f38143a8fe9721a53003317a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de> Date: Tue, 9 Apr 2024 15:20:30 +0200 Subject: [PATCH] fix: set correct paths for Ansible Vaults and enable colored output --- .gitlab-ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 272c4c2..40da83a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,8 @@ stages: # List of stages for jobs, and their order of execution variables: # CI_DEBUG_TRACE: "true" SCENARIO: "default" + ANSIBLE_FORCE_COLOR: 'true' + PY_COLORS: '1' default: before_script: @@ -26,9 +28,9 @@ test-job: - "shell" script: # make sure that Ansible Vaults are present and can be decrypted - - echo "${VAULT_INSTALL_COMMON}" > ../../../lza_install_common.pass - - echo "${VAULT_ROSETTA_APP}" > ../../../lza_rosetta_app.pass - - export ANSIBLE_VAULT_IDENTITY_LIST="../../../lza_install_common.pass, ../../../lza_rosetta_app.pass" + - echo "${VAULT_INSTALL_COMMON}" > ${CI_PROJECT_DIR}/molecule/${SCENARIO}/../../../lza_install_common.pass + - echo "${VAULT_ROSETTA_APP}" > ${CI_PROJECT_DIR}/molecule/${SCENARIO}/../../../lza_rosetta_app.pass + - export ANSIBLE_VAULT_IDENTITY_LIST="${CI_PROJECT_DIR}/molecule/${SCENARIO}/../../../lza_install_common.pass, ${CI_PROJECT_DIR}/molecule/${SCENARIO}/../../../lza_rosetta_app.pass" - rm -rf ../ansible_vaults/ - rm -rf ../ansible_lza_install_common/ - git clone https://gitlab+deploy-token-25:${VAULT_ACCESS_TOKEN}@git.slub-dresden.de/slub-referat-2-3/ansible_vaults.git ../ansible_vaults/; -- GitLab