From 3d7e3213dd88a48aff83f5fceedc862ca3c8c611 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <Joerg.Sachse@slub-dresden.de>
Date: Tue, 9 Aug 2022 14:24:32 +0200
Subject: [PATCH] fix: use ANSIBLE_VAULT_IDENTITY_LIST to enable Molecule
 tesing in Gitlab-CI

---
 .gitlab-ci.yml | 2 +-
 ansible.cfg    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d50d831..b308980 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,7 +21,7 @@ test-job:
     # make sure that Ansible Vaults are present and can be decrypted
     - echo "${VAULT_REPORTING}" > ../lza_reporting.pass
     - echo "${VAULT_INSTALL_COMMON}" > ../lza_install_common.pass
-    - export ANSIBLE_VAULT_PASSWORD_FILE="../lza_reporting.pass, ../lza_install_common.pass"
+    - export ANSIBLE_VAULT_IDENTITY_LIST="../lza_reporting.pass, ../lza_install_common.pass"
     - rm -rf ../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/; \
     # run Molecule tests
diff --git a/ansible.cfg b/ansible.cfg
index 8d086fe..4610d96 100644
--- a/ansible.cfg
+++ b/ansible.cfg
@@ -2,7 +2,7 @@
 # If set, configures the path to the Vault password file as an alternative to
 # specifying --vault-password-file on the command line.
 #vault_identity_list = ../lza_reporting.pass, ../lza_install_common.pass, ../lza_server_hardening.pass, ../slub_osquery.pass
-vault_identity_list = ../lza_reporting.pass
+vault_identity_list = ../lza_reporting.pass, ../lza_install_common.pass
 
 # Path to default inventory file
 # Administrators can override this by using the "-i <inventoryfile>" CLI
-- 
GitLab