Hi,

We are storing private keys in a DB and when we need to run a playbook 
would like to pass these SSH keys as an argument instead of storing as a 
file locally.

I tried something like this:

ansible-playbook -i "1.2.3.4," --extra-vars="ansible_user=username 
ansible_ssh_private_key_file=$KEY" playbooks/playbook.yml

but get message 'No such file or directory'

It works if I specify a key file (and location).  $KEY in an environment 
variable with private key contents.

So, is there a way to pass $KEY without having to create a file?

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e318a0e1-d666-4d27-bef0-61ed5646d324%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to