Ansible - get private_key_file from 1password

lazygibbon
lazygibbon
Community Member

Hi,
I stored my private keys in 1password. Using this with ssh works fine.
Now I want to use it with ansible for host auth. So I removed the private_key_file parameter from my ansible.cfg, but it didnt work.
I also tried with private_key_file=op read "op://Private/ssh-key ansible/private key", no success.

Could someone please tell me if its possible to have ansible use the private key file for host auth from 1password?


1Password Version: 8.10.26
Extension Version: 2.25.0
OS Version: MacOS 14
Browser: Not Provided

This discussion has been closed.