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.
MIT License
905 stars 143 forks source link

ssh port change #47

Closed linkingli closed 3 years ago

linkingli commented 3 years ago

I have modified the port of Ansible SSH and now use Go-Ansible to run Ansible PlayBook. How can I run it properly。

apenella commented 3 years ago

hi! @linkingli have you tried to set the variable ansible_port either on your inventory or as an extra-var?

Thanks!

linkingli commented 3 years ago

Wow, thanks for replying to me so quickly, I was just about to give it a try, thanks

@apenella

apenella commented 3 years ago

hi @linkingli have you already solved it'

thanks!

apenella commented 3 years ago

Since there is no response, I am going to close that issue. @linkingli in case you need anything else about that issue, just reopen it.

Thanks!