Go library#

Libraries maintained by arillso.

Library

Release

Purpose

go.ansible

v2.0.0

Go package that builds and runs ansible-galaxy and ansible-playbook commands from a Config struct

go get github.com/arillso/go.ansible/v2@v2.0.0
pb := ansible.NewPlaybook()
pb.Config.Playbooks = []string{"site.yml"}
pb.Config.Inventories = []string{"inventory.yml"}
err := pb.Exec(context.Background())

Source: https://github.com/arillso/go.ansible ยท API reference: https://pkg.go.dev/github.com/arillso/go.ansible/v2

See also