Skip to content

Instantly share code, notes, and snippets.

@hatsari
Created August 29, 2018 00:27
Show Gist options
  • Save hatsari/541de415cb75c52a36e883361915dd26 to your computer and use it in GitHub Desktop.
Save hatsari/541de415cb75c52a36e883361915dd26 to your computer and use it in GitHub Desktop.
ansible-vault to encrypt private secret
$ vi private_secrets.txt
$ cat private_secrets.txt
#사이트 접속 비밀번호
#update: 2020.08.08
#
#gmail.com: 비밀번호
#naver.com: n비밀번호
#clien.com: c비밀번호
#### make it encrypt
ansible-vault encrypt private_secrets.txt
New Vault password:
Confirm New Vault password:
Encryption successful
#### view it
ansible-vault view private_secrets.txt
#### edit it
ansible-vault edit private_secrets.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment