Ansible-vault

From wikieduonline
Jump to navigation Jump to search

Support for saving encrypted information (passwords, API Keys ...) in playbooks using Ansible Vault (ansible-vault[1]) since 2014

ansible-vault encrypt passwords.yml[2][3]


ansible-vault [create|decrypt|edit|encrypt|rekey] [--help] [options] file_name


Commands

  • ansible-vault encrypt YOUR_FILE
  • ansible-vault decrypt YOUR_FILE
  • ansible-vault view YOUR_FILE
  • ansible-playbook --vault-id @prompt create-users.yml

Activities

  1. Learn about ansible-vault common uses cases

Related commands

See also

Advertising: