Decrypting/Encrypting Ansible Vault on Windows

19 views
Skip to first unread message

Jordan Borean

unread,
May 20, 2018, 2:10:10 AM5/20/18
to Ansible Project
Hey

This is a shameless self post but recently I've been spending some time trying to understand how Ansible Vault works and I decided to apply what I learnt by creating some PowerShell cmdlets to encrypt/decrypt a vault file in Windows. If you are one of the poor unfortunate souls who are forced to develop on Windows, especially if you can't use Windows 10/WSL, I hope this is of some use to you.

The code is located here https://github.com/jborean93/PowerShell-AnsibleVault and I've also written a post about the whole process here https://www.bloggingforlogging.com/2018/05/20/decrypting-the-secrets-of-ansible-vault-in-powershell/. To install the cmdlets just run `Install-Module -Name AnsibleVault` (you need PS v5 or PowerShellGet installed), otherwise you can copy them across manually.

Thanks

Jordan
Reply all
Reply to author
Forward
0 new messages