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

How to pass -u and --ask-become-pass options?

koddr opened this issue · comments

Hello! Thanks for this Go package.

Can you tell me please, how to pass -u and --ask-become-pass to execution via your package?

Thanks! 😉

Hi @koddr
The package is not ready to use those arguments but I will include them on the next few days.

Thanks!

@apenella thx for reply!

Okay, I understand you. Can't wait to test this on my project 👍

@koddr version 0.4.0 includes escalation privileged options and new opt on connection options to set the ssh user.

@apenella thx! You rock 👍