Difference between revisions of "Ansible-vault"

From wikieduonline
Jump to navigation Jump to search
 
(29 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 terms ==
 +
* <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}}
+
* {{ansible-vault}}
* {{HTTPS}}
 
 
* {{secrets}}
 
* {{secrets}}
 +
* {{vault}}
  
  
 
[[Category:Ansible]]
 
[[Category:Ansible]]
 
[[Category:DevOps]]
 
[[Category:DevOps]]

Latest revision as of 13:34, 25 January 2023

Advertising: