User Tools

Site Tools


ansible:ansible_vault

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ansible:ansible_vault [2023/09/13 22:09]
manu
ansible:ansible_vault [2023/09/19 19:27] (current)
manu
Line 8: Line 8:
   * encrypt: encrypt a file or variable   * encrypt: encrypt a file or variable
   * rekey: reencrypt   * rekey: reencrypt
 +
 +Add option --vault-password-file <​filename_not_encrypt>​ to prevent asking password
 +
 +
  
 ansible vault ansible vault
  
 vaultID: multi-password vaultID: multi-password
 +<​code>​
 ansible-vault encrypt --vault-id pwd.txt group_vars/​all/​vault.txt ansible-vault encrypt --vault-id pwd.txt group_vars/​all/​vault.txt
  
Line 23: Line 27:
  
 ansible -i "​127.0.0.1,"​ all --vault-id id1@pwd.txt -m debug -a "​msg='​{{mysecret}}'"​ ansible -i "​127.0.0.1,"​ all --vault-id id1@pwd.txt -m debug -a "​msg='​{{mysecret}}'"​
 +</​code>​
  
  
ansible/ansible_vault.1694635785.txt.gz ยท Last modified: 2023/09/13 22:09 by manu