apenella / go-ansible

Go-ansible is a Go package that enables the execution of ansible-playbook or ansible commands directly from Golang applications. It supports a wide range of options for each command, enabling smooth integration of Ansible functionality into your projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

you must install the sshpass program

torans opened this issue · comments

os:MacOS
go-ansible version:1.1.5
when that i set the "ansible_ssh_passwd" to the hosts file, i got the error:

"msg": "to use the 'ssh' connection type with passwords or pkcs11_provider, you must install the sshpass program"

i have installed the sshpass on my macos, how to solve the trouble?

Hi @torans
Do you face the same error when you execute the playbook using ansible-playbook directly?

Does sshpass works when you execute it through command line (sshpass -p mypass ssh myusername@myhost)?

I will also try to reproduce it

@torans since there is no update on that issue, I am going to close it

@torans since there is no update on that issue, I am going to close it

Thanks. now it is normal for me.