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
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/ca9c5e3d16b252b79f010f30315a809c%40olstad.com.
For more options, visit https://groups.google.com/d/optout.