I have a set of ansible client servers accessible from ansible engine using ssh-key and passphrase.
When I run a ansible ad-hoc command , I have to enter passphase on each servers connections and this is repeating for all the tasks.
However from github search , find a way to reduce the enter the passphrase only one time by using the ssh-agent "eval "$(ssh-agent -s)" ; ssh-add ~/.ssh/id_rsa"
and by entering passphrase once .
When I exit the shell and re-login the I have to re-run and enter the commands and passphrase again .
How can I avoid this ? Is there a way to store the passphrase as like in ansible-vault and use it for login?