Score:0

Using vault password with ansible-runner

pe flag
Lou

I am looking for a way to use ansible-vault password required to run a playbook ran with ansible-runner. I did find some doc and advices like this one (which is a pretty old post and I am not quite sure that I can rely on what's advised here) or this one (which is newer but do not provide a consistent answer), but I do not manage to replicate these behaviors.

I also tried the following things :

  • to use a password file listed in ansible.cfg file under the parameter vault_identity_list
  • to put this config file at the root of my ansible-runner directory, or inside /project directory.
Zeitounator avatar
fr flag
Where is the config/code of what you have tried (i.e. [edit] your question to add it). What was the the exact result you got (i.e. [edit] and add an example run/error/etc...)? Where are you still stuck? Configuring a correctly crafted vault_identity_list with the relevant files/script to call for each ID should pretty much meet your requirement.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.