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

Can you construct a playbook fully with code?

rhugga opened this issue · comments

Right now my playbooks are local yaml files. I was curious if you can completely construct a playbook in code with this library and completely removed the dependence on static files?

hi @rhugga
unfortunatelly that is not possible. The library is just an executor for ansible-playbook and ansible command.

Thx.