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

tool like pytest infra #159

Closed keith6014 closed 3 weeks ago

keith6014 commented 2 months ago

I was wondering if its possible to have a tool similar to https://testinfra.readthedocs.io/en/latest/ with this library? At the moment I am using it with python but would love to rewrite with golang.

apenella commented 2 months ago

hi @keith6014! It sounds like a great initiative!

You can execute Ansible commands using the go-ansible library. Here are a couple of examples where I used the library to run Ansible commands from a Go application:

I hope these examples inspire you and help you understand how to use the library.

apenella commented 1 month ago

Hi @keith6014! Did these examples inspire you on how to implement the testing tool?

apenella commented 3 weeks ago

@keith6014 I close this issue. If you need further help, please open a new issue or reopen this one.