`fatal: [web01]: FAILED! => {"msg": "to use the 'ssh' connection type with passwords, you must install the sshpass program"}`
BeginnerTroubleshootingConnection and SSH Failures
Answer
Likely causes → Password SSH is requested (ansible_password or -k) but sshpass is missing on the controller.
Diagnose → which sshpass.
Fix → apt install sshpass or dnf install sshpass, or switch to key auth, which is preferred.
Prevent → Use keys; reserve passwords for first-time bootstrapping.
More on Connection and SSH Failures
`UNREACHABLE! => {"msg": "Failed to connect to the host via ssh: Permission denied (publickey,password)."}`Beginner`UNREACHABLE! => {"msg": "Failed to connect to the host via ssh: ssh: connect to host 10.0.1.15 port 22: Connection timed out"}`Beginner`UNREACHABLE! => {"msg": "Failed to connect to the host via ssh: ssh: connect to host web01 port 22: Connection refused"}`Beginner`Host key verification failed.` after rebuilding a serverBeginnerThe playbook hangs for ever at "Gathering Facts" on one hostIntermediate`Failed to connect to the host via ssh: Too many authentication failures`Intermediate