I set up 2 new users with their respective key pairs,.. their public keys ve been established on the remote host. The problem am having is I passsed the ssh keys on the host file as follows
[remotehost:var] ansible_ssh_private_key_file=~/.ssh/user1.private_key ansible_ssh_private_key_file=~/.ssh/user2.private_key
The problem is only one user could establish ansible connection. Even tho both users can ssh into the remote host.
Am sure there’s a way set both users up to reach thesame node in the host file