I've been working on setting up ansible to help with my multiple Pi's and I'm stuck. All of my Pi's are configured with ssh keys and passphrase. I can successfully test connections via "ansible RPis -m ping", but I have to enter the passphrase individually. Is there a way to hard code the passphrase?
Thanks
-
- Posts: 1
- Joined: Tue Jun 25, 2019 12:01 pm
Re: New to ansible - need help
Welcome to the Raspberry Pi forums.
ssh-agent in conjunction with ssh-add are probably what you need.
https://www.ssh.com/ssh/agent
don-geek-dom wrote: ↑Sat Aug 31, 2019 10:49 amI've been working on setting up ansible to help with my multiple Pi's and I'm stuck. All of my Pi's are configured with ssh keys and passphrase. I can successfully test connections via "ansible RPis -m ping", but I have to enter the passphrase individually. Is there a way to hard code the passphrase?
Thanks
ssh-agent in conjunction with ssh-add are probably what you need.
https://www.ssh.com/ssh/agent
Re: New to ansible - need help
Maintainer of MoodleBox, a Moodle server on Raspberry Pi