On 07.10.2016 12:21, Mona Gopal wrote:
> On Monday, October 3, 2016 at 4:10:07 PM UTC+5:30, Kai Stian Olstad
> wrote:
>>
>> On 03.10.2016 12:28, Mona Gopal wrote:
>> > I am facing a similar issue.
>> > I have non-root access to a server to which i am able to connect
>> > manually.
>> > But ansible throws "to use the 'ssh' connection type with passwords,
>> > you
>> > must install the sshpass program" error when i execute the playbook.
>> > My hosts file contains the ip address and credentials to login to that
>> > server in the below format
>> > ip ansible_ssh_user="non-root-user" ansible_ssh_pass="password"
>> >
>> > Is it necessary to install sshpass on the remote node as well??
>> > I do not have root access, so how do i go about it?
>>
>> Not on the remote node, but you need sshpass on your Ansible control
>> machine.
>>
>
> I have installed openssh-server and openssh-clients on the control
> machine
> and the error still persists.
> Any other way forward??
Did you install the package "sshpass" on the control machine?
(Non-interactive ssh password authentication).
Ansible doesn't require openssh-server on the control machine, but when
you are using ssh with password the program "sshpass" is needed on the
control machine since ssh doesn’t provide this functionality itself.
--
Kai Stian Olstad