diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-06-23 12:02:21 +0100 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-06-23 12:02:21 +0100 |
commit | d5c947fede1b6143051b9c8bbc727f447c2f498f (patch) | |
tree | 723ce258415808947242710a8a67f2554bbe442d /bin/rotate-vault-password | |
parent | 9b310026e3ee6f22db09b4e29a8389d8399f9d43 (diff) | |
download | infra-d5c947fede1b6143051b9c8bbc727f447c2f498f.tar.gz infra-d5c947fede1b6143051b9c8bbc727f447c2f498f.tar.bz2 infra-d5c947fede1b6143051b9c8bbc727f447c2f498f.zip |
Make `bin/rotate-vault-password` a bit more robust
Diffstat (limited to 'bin/rotate-vault-password')
-rwxr-xr-x | bin/rotate-vault-password | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/rotate-vault-password b/bin/rotate-vault-password index 1762786..f73e889 100755 --- a/bin/rotate-vault-password +++ b/bin/rotate-vault-password @@ -12,4 +12,5 @@ gpg \ --output misc/vault-password.asc \ --encrypt password.txt -ansible-vault view misc/vaults/example.yml && rm password.txt +ansible-vault view misc/vaults/example.yml |\ + grep 'Secret revealed!' > /dev/null && rm password.txt |