Difference between revisions of "Ansible-vault"
Jump to navigation
Jump to search
↑ https://docs.ansible.com/ansible/latest/user_guide/vault.html
↑ https://docs.ansible.com/ansible/latest/user_guide/vault.html
↑ http://manpages.org/ansible-vault
Tags: Mobile web edit, Mobile edit |
|||
(28 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{lowercase}} | ||
+ | https://docs.ansible.com/ansible/latest/user_guide/vault.html | ||
+ | |||
Support for saving encrypted information (passwords, API Keys ...) in playbooks using Ansible Vault (<code>[[ansible-vault]]</code><ref>https://docs.ansible.com/ansible/latest/user_guide/vault.html</ref>) since 2014 | Support for saving encrypted information (passwords, API Keys ...) in playbooks using Ansible Vault (<code>[[ansible-vault]]</code><ref>https://docs.ansible.com/ansible/latest/user_guide/vault.html</ref>) since 2014 | ||
− | <code>ansible-vault encrypt passwords.yml</code><ref>https://docs.ansible.com/ansible/latest/user_guide/vault.html</ref><ref>http://manpages.org/ansible-vault</ref> | + | Encrypt file: |
+ | * <code>[[ansible-vault encrypt]] passwords.yml</code><ref>https://docs.ansible.com/ansible/latest/user_guide/vault.html</ref><ref>http://manpages.org/ansible-vault</ref> | ||
+ | * <code>[[ansible-vault --help]]</code> | ||
+ | * <code>[[ansible-vault --version]]</code> | ||
− | <code>ansible-vault [create|decrypt|edit|encrypt|rekey] [--help] [options] file_name</code> | + | * <code>ansible-vault [create|decrypt|edit|encrypt|rekey|[[view]]] [--help] [options] file_name</code> |
== Commands == | == Commands == | ||
− | * <code>ansible-playbook --vault-id @prompt create-users.yml</code> | + | * <code>[[ansible-vault create]]</code> |
+ | * <code>[[ansible-vault encrypt]] YOUR_FILE</code> | ||
+ | * <code>[[ansible-vault encrypt_string]]</code> | ||
+ | * <code>[[ansible-vault decrypt]] YOUR_FILE</code> | ||
+ | * <code>[[ansible-vault view]] YOUR_FILE</code> | ||
+ | * <code>[[ansible-playbook]] --vault-id @prompt create-users.yml</code> | ||
== Activities == | == Activities == | ||
# Learn about <code>ansible-vault</code> common uses cases | # Learn about <code>ansible-vault</code> common uses cases | ||
− | == Related | + | == Related terms == |
* <code>[[openssl enc]]</code> | * <code>[[openssl enc]]</code> | ||
+ | * <code>[[--ask-vault-pass]] or [[--ask-vault-password]]</code> | ||
+ | * <code>[[--vault-password-file]]</code> | ||
+ | * <code>[[vars_files:]]</code> | ||
+ | * [[vault ID]]: <code>[[--vault-id]]</code> | ||
+ | * <code>[[sops]]</code> | ||
+ | * <code>[[password:]]</code> | ||
== See also == | == See also == | ||
− | * {{ | + | * {{ansible-vault}} |
− | |||
* {{secrets}} | * {{secrets}} | ||
+ | * {{vault}} | ||
[[Category:Ansible]] | [[Category:Ansible]] | ||
[[Category:DevOps]] | [[Category:DevOps]] |
Latest revision as of 13:34, 25 January 2023
https://docs.ansible.com/ansible/latest/user_guide/vault.html
Support for saving encrypted information (passwords, API Keys ...) in playbooks using Ansible Vault (ansible-vault
[1]) since 2014
Encrypt file:
ansible-vault encrypt passwords.yml
[2][3]
ansible-vault [create|decrypt|edit|encrypt|rekey|view] [--help] [options] file_name
Contents
Commands[edit]
ansible-vault create
ansible-vault encrypt YOUR_FILE
ansible-vault encrypt_string
ansible-vault decrypt YOUR_FILE
ansible-vault view YOUR_FILE
ansible-playbook --vault-id @prompt create-users.yml
Activities[edit]
- Learn about
ansible-vault
common uses cases
Related terms[edit]
openssl enc
--ask-vault-pass or --ask-vault-password
--vault-password-file
vars_files:
- vault ID:
--vault-id
sops
password:
See also[edit]
ansible-vault [ create | encrypt
|decrypt
|view
|encrypt_string ]
,ansible-vault --version
,ansible-vault --help
- Secrets: Kubernetes secrets,
ansible-vault
, Hashicorp Vault, AWS Secrets Manager, Google Secret Manager,git-crypt
, SOPS: Secrets OPerationS, Google Cloud Secret Manager, GitHub secret scanning alerts vault [ secrets enable | kv put | kv get | server | operator | auth | token | secrets | auth enable | status
] Vault Changelog,vault help
Advertising: