Skip to content

Instantly share code, notes, and snippets.

@peterkowalski
Created October 27, 2020 19:16
Show Gist options
  • Save peterkowalski/ca413c5477193b28252b9a0433f7a9b7 to your computer and use it in GitHub Desktop.
Save peterkowalski/ca413c5477193b28252b9a0433f7a9b7 to your computer and use it in GitHub Desktop.
[Decrypt Ansible variable] Ad-hoc command to decrypt Ansible variable from a file with a specific vault password #ansible #adhoc
ansible localhost -m debug -a var="passwordVariable" -e "@encrypted-file.yml" --vault-password-file ~/password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment