From 40ca27145f7090d5d3d618651f68b6ad3ecd9752 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Tue, 5 Apr 2022 10:23:24 +0000
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d509f65..6ea9f61 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -43,6 +43,10 @@ unit-test-job:   # This job runs in the test stage.
     - apt-get -y install python3 git
     - source ansible/bin/activate
     - ansible-galaxy install -r requirements.yml
-    - ansible-playbook site.yml -b -l localhost
+    - echo $vault_lza_install_common > ${CI_BUILDS_DIR}lza_install_common.pass
+    - echo $vault_lza_server_hardening > ${CI_BUILDS_DIR}/lza_server_hardening.pass
+    - echo $vault_slub_osquery > ${CI_BUILDS_DIR}/slub_osquery.pass
+    - echo $vault_lza_sanitytest > ${CI_BUILDS_DIR}/lza_sanitytest.pass
+    - ansible-playbook site.yml -b -l localhost --vault-password-file ${CI_BUILDS_DIR}lza_install_common.pass ${CI_BUILDS_DIR}/lza_server_hardening.pass ${CI_BUILDS_DIR}/slub_osquery.pass ${CI_BUILDS_DIR}/lza_sanitytest.pass
   variables:
-    ANSIBLE_ROLES_PATH: "/builds/digital-preservation/"
+    ANSIBLE_ROLES_PATH: "${CI_BUILDS_DIR}/${CI_PROJECT_PATH}/"
-- 
GitLab