refactot encrytion- and decryption scripts.

This commit is contained in:
2026-08-03 15:43:39 +02:00
parent a318e1258c
commit 55f9a6f5b8
8 changed files with 476 additions and 111 deletions
+3
View File
@@ -75,6 +75,7 @@ vdecr() {
if [[ "$(head -n1 "$1")" == "\$ANSIBLE_VAULT;1.1;AES256" ]]; then
# Vollständige Datei entschlüsseln und ausgeben
ansible-vault decrypt "$1" 2>/dev/null
echo "Decrypted file: $1" >&2
return 0
fi
@@ -133,6 +134,8 @@ vdecr() {
# Tokenisierung nach Whitespace (ähnlich dem Original)
done < <(tr -s '[:space:]' '\n' < "$1")
echo "Processed vault values from file: $1" >&2
return 0
fi