Questions tagged [ansible-vault]

Use this tag for questions regarding the usage of Ansible Vault for protecting data for playbooks and roles.

Ansible Vault is a feature and an executable program (ansible-vault) in Ansible family, allowing encryption of variable files, as well as tasks and handlers.

198 questions
-1
votes
1 answer

Ansible Jinja2 template - Remove trailing whitespace

I am trying to load an ansible vault file into an k8 configmap YAML file using Ansible Jinja template but facing an issue with a trailing whitespace getting added at the end of the contents of the YAML file. This is causing errors as below: Vault…
Amala
  • 161
  • 1
  • 3
  • 13
-1
votes
1 answer

Decrypting ansible vault files before rsyncing

I encrypted a bunch of files (certificates) using the following script for i in $(find . -type f); do ansible-vault encrypt $i --vault-password-file ~/.vault && echo $i encrypted ; done During rsyncing I run something like this - name: Copy…
Quintin Par
  • 15,862
  • 27
  • 93
  • 146
-1
votes
1 answer

ansible-vault: possible to *not* decrypt file

I would like to deploy encrypted (by ansible-vault) files using ansible without providing the vault password. The files should remain encrypted and only be decrypted on the server if needed (using a separate script). Is that possible somehow? Some…
kev
  • 8,928
  • 14
  • 61
  • 103
1 2 3
13
14