I'm working on the next Unix Tutorial Project these days and need to configure new RHEL 8 based PC with Ansible. There's always a bit of a chicken-and-egg with it because you need to have enough SSH and su or sudo access on remote server before Ansible can be used.
sshpass for Ansible
I got the following error in Ansible output:
fatal: [rhel8]: FAILED! => {"msg": "to use the 'ssh' connection type with passwords, you must install the sshpass program"}
Hoping this would be easily solved, I tried installing sshpass with brew in macOS, but got this instead:
Error: No available formula with the name "sshpass"
We won't add sshpass because it makes it too easy for novice SSH users to
ruin SSH's security.
I think it's pretty cool that someone took the time to leave this comment behind!
Leave a Reply