mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
ansible-vault: convert vault_password_files to list to prevent traceback (#57186)
* Convert vault_password_files to a list * Add changelog and tests
This commit is contained in:
@@ -317,6 +317,10 @@ echo "rc was $WRONG_RC (1 is expected)"
|
||||
|
||||
ansible-vault encrypt_string "$@" --vault-password-file "${NEW_VAULT_PASSWORD}" "a test string"
|
||||
|
||||
# Test with multiple vault password files
|
||||
# https://github.com/ansible/ansible/issues/57172
|
||||
env ANSIBLE_VAULT_PASSWORD_FILE=vault-password ansible-vault encrypt_string "$@" --vault-password-file "${NEW_VAULT_PASSWORD}" --encrypt-vault-id default "a test string"
|
||||
|
||||
ansible-vault encrypt_string "$@" --vault-password-file "${NEW_VAULT_PASSWORD}" --name "blippy" "a test string names blippy"
|
||||
|
||||
ansible-vault encrypt_string "$@" --vault-id "${NEW_VAULT_PASSWORD}" "a test string"
|
||||
|
||||
Reference in New Issue
Block a user