Skip to content
Snippets Groups Projects
Commit 95a8cbd3 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: set correct paths for Ansible Vaults and enable colored output

parent ab235d02
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,8 @@ stages: # List of stages for jobs, and their order of execution ...@@ -10,6 +10,8 @@ stages: # List of stages for jobs, and their order of execution
variables: variables:
# CI_DEBUG_TRACE: "true" # CI_DEBUG_TRACE: "true"
SCENARIO: "default" SCENARIO: "default"
ANSIBLE_FORCE_COLOR: 'true'
PY_COLORS: '1'
default: default:
before_script: before_script:
...@@ -26,9 +28,9 @@ test-job: ...@@ -26,9 +28,9 @@ test-job:
- "shell" - "shell"
script: script:
# make sure that Ansible Vaults are present and can be decrypted # make sure that Ansible Vaults are present and can be decrypted
- echo "${VAULT_INSTALL_COMMON}" > ../../../lza_install_common.pass - echo "${VAULT_INSTALL_COMMON}" > ${CI_PROJECT_DIR}/molecule/${SCENARIO}/../../../lza_install_common.pass
- echo "${VAULT_ROSETTA_APP}" > ../../../lza_rosetta_app.pass - echo "${VAULT_ROSETTA_APP}" > ${CI_PROJECT_DIR}/molecule/${SCENARIO}/../../../lza_rosetta_app.pass
- export ANSIBLE_VAULT_IDENTITY_LIST="../../../lza_install_common.pass, ../../../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_vaults/
- rm -rf ../ansible_lza_install_common/ - 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/; - git clone https://gitlab+deploy-token-25:${VAULT_ACCESS_TOKEN}@git.slub-dresden.de/slub-referat-2-3/ansible_vaults.git ../ansible_vaults/;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment