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

test: use correct paths for Ansible Vault password files as required by Molecule >v6

parent 92b5d147
No related branches found
No related tags found
No related merge requests found
...@@ -19,8 +19,8 @@ test-job: ...@@ -19,8 +19,8 @@ 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_INGEST}" > ../lza_ingest.pass - echo "${VAULT_INGEST}" > ../../../lza_ingest.pass
- export ANSIBLE_VAULT_PASSWORD_FILE=../lza_ingest.pass - export ANSIBLE_VAULT_PASSWORD_FILE=../../../lza_ingest.pass
- rm -rf ../ansible_vaults/ - 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/; \ - 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 # run Molecule tests
......
...@@ -21,7 +21,7 @@ platforms: ...@@ -21,7 +21,7 @@ platforms:
# Dictionary of `config` options. # Dictionary of `config` options.
config_options: config_options:
ssh.keep_alive: true ssh.keep_alive: true
ssh.remote_user: "'lza'" ssh.remote_user: "lza"
provisioner: provisioner:
name: ansible name: ansible
log: true log: true
...@@ -29,7 +29,7 @@ provisioner: ...@@ -29,7 +29,7 @@ provisioner:
defaults: defaults:
# https://stackoverflow.com/questions/57435811/ansible-molecule-pass-multiple-vault-ids # 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: "@$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 vvv: false
playbooks: playbooks:
# create: ../resources/playbooks/create.yml # create: ../resources/playbooks/create.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment