refactot encrytion- and decryption scripts.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user