Ansible: how to solve “sudo: a password is required” error? [duplicate]
问题 This question already has an answer here : How can a user with SSH keys authentication have sudo powers in Ansible? [duplicate] (1 answer) Closed last year . I have 9 servers and i am trying to install a package using ansible, i am able to ssh into 5 of the servers using a password and other 4 does not ask any password while ssh'ng into them. However i have copied id_rsa.pub key to all the 9 servers. Now the ansible script is working fine for 5 server but w remaining 4 i am getting the