Skip to content

Instantly share code, notes, and snippets.

@jimbo8098
Created July 14, 2021 19:43
Show Gist options
  • Save jimbo8098/c25f58bffece040c36eac32e50e915c8 to your computer and use it in GitHub Desktop.
Save jimbo8098/c25f58bffece040c36eac32e50e915c8 to your computer and use it in GitHub Desktop.
# Where:
# ~/.ansible-pass-files/token is the pass file
# token is the vault-id you want to use
# agent_token is the name of the
ansible-vault encrypt_string --vault-id token@~/.ansible-pass-files/token --encrypt-vault-id token --name agent_token 'string-to-encrypt'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment