github.com/StackExchange/blackbox/v2@v2.0.1-0.20220331193400-d84e904973ab/docs/with-ansible.md (about)

     1  How to use the secrets with Ansible?
     2  ===================================
     3  
     4  Ansible Vault provides functionality for encrypting both entire files
     5  and strings stored within files; however, keeping track of the
     6  password(s) required for decryption is not handled by this module.
     7  
     8  Instead one must specify a password file when running the playbook.
     9  
    10  Ansible example for password file: `my_secret_password.txt.gpg`
    11  
    12  ```
    13  ansible-playbook --vault-password-file my_secret_password.txt site.yml
    14  ```
    15  
    16  Alternatively, one can specify this in the
    17  `ANSIBLE_VAULT_PASSWORD_FILE` environment variable.
    18