From 2fb00686f731377a64675754de70189eb5f3513b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de> Date: Wed, 4 Oct 2023 11:15:51 +0200 Subject: [PATCH] test: use correct paths for Ansible Vault password files as required by Molecule >v6 --- .gitlab-ci.yml | 4 ++-- molecule/virtualbox_debian11/molecule.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 55bee84..47524b1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,8 +19,8 @@ test-job: - "shell" script: # make sure that Ansible Vaults are present and can be decrypted - - echo "${VAULT_INGEST}" > ../lza_ingest.pass - - export ANSIBLE_VAULT_PASSWORD_FILE=../lza_ingest.pass + - echo "${VAULT_INGEST}" > ../../../lza_ingest.pass + - export ANSIBLE_VAULT_PASSWORD_FILE=../../../lza_ingest.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/molecule/virtualbox_debian11/molecule.yml b/molecule/virtualbox_debian11/molecule.yml index 47ae999..bea7d2e 100644 --- a/molecule/virtualbox_debian11/molecule.yml +++ b/molecule/virtualbox_debian11/molecule.yml @@ -21,7 +21,7 @@ platforms: # Dictionary of `config` options. config_options: ssh.keep_alive: true - ssh.remote_user: "'lza'" + ssh.remote_user: "lza" provisioner: name: ansible log: true @@ -29,7 +29,7 @@ provisioner: defaults: # https://stackoverflow.com/questions/57435811/ansible-molecule-pass-multiple-vault-ids # vault_identity_list: "@$HOME/.ansible/roles/lza_install_common.pass, @$HOME/.ansible/roles/passfile_1.pass" - vault_identity_list: "../lza_ingest.pass" + vault_identity_list: "../../../lza_ingest.pass" vvv: false playbooks: # create: ../resources/playbooks/create.yml -- GitLab