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
875 stars 142 forks source link

feat: add support for execute env vars #81

Closed alexandrevilain closed 2 years ago

alexandrevilain commented 2 years ago

Hi :)

I think it can be useful for users to provide env vars for each ansible runs.

For instance, I use this feature to pass a custom ANSIBLE_RETRY_FILES_SAVE_PATH for each run at runtime.

apenella commented 2 years ago

Hi! @alexandrevilain Thanks for your contribution. I like it very much! I merge it into a new branch where I am going to write some release notes and update the readme, then it will be merged into master. Although I merge it into master, I will not prepare a release for that feat. However, it will belong to next fix or v1.2.0.

Again, thank you very much!