Is it possible to reference a vault secret as a variable? #882
Unanswered
Br4v3St4rr
asked this question in
Q&A
Replies: 2 comments 4 replies
-
No, currently not. I planning to implement passing secrets via variables. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes it is possible
Then encrypted it using
You can either integrate that part to your playbook or use ansible.builtin.include_vars to load your encrypted var file. Then you put your file password (the one you used to encrypt your file) in semaphore vault without login information and your file will be decrypted at runtime and will replace your variable I don't know if it helps but that's how I solve my issue. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As above is it possible to reference a vault secret as a variable in a playbook?
e.g.
Where
some_pass
is in the vault?Beta Was this translation helpful? Give feedback.
All reactions