go-ansible icon indicating copy to clipboard operation
go-ansible copied to clipboard

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 i...

Results 20 go-ansible issues
Sort by recently updated
recently updated
newest added

Hi Apenella, The string generated by AnsibleAdhocOptions misses single quote character around JSON string while using adhoc. Ansible 6.x refuses to read it as correct form of command: > ansibleAdhocOptions...

error info: json: cannot unmarshal bool into Go struct field AnsiblePlaybookJSONResultsPlayTaskHostsItem.plays.tasks.hosts.unreachable of type string: Error decoding results json: cannot unmarshal bool into Go struct field AnsiblePlaybookJSONResultsPlayTaskHostsItem.plays.tasks.hosts.unreachable of type string ```json...

Anyone know of a good example of writing tests for code using this library. Where I work we have a ridiculous pull request process that requires near total test coverage...

**Enhancement request** Execute ansible-vault command using go-ansible. _edit_ subcommand could be excluded. ``` usage: ansible-vault [-h] [--version] [-v] {create,decrypt,edit,view,encrypt,encrypt_string,rekey} ... encryption/decryption utility for Ansible data files positional arguments: {create,decrypt,edit,view,encrypt,encrypt_string,rekey} create...

enhancement
v1.2.0

**Enhacement request** Install collection or roles dependencies before run ansible command

v2.0.0
Feature Request

**Enhacement request** Execute ansible-galaxy commands using go-ansible package. - Main command options: ```sh usage: ansible-galaxy [-h] [--version] [-v] TYPE ... Perform various Role and Collection related operations. positional arguments: TYPE...

v2.0.0
Feature Request
Pending Analysis

when i use “Verbose: true ” in playbook.AnsiblePlaybookOptions,output could not be parsed to result.AnsiblePlaybookJSONResult struct and err:invalid character 'a' looking for beginning of value but if i set “Verbose: false...

bug
v2.0.0

I'm hitting an issue where I'm getting an error trying to use more than one ssh extra arg: This is the command that the library ends up running. This works...

Good afternoon. I think I found a problem in the library, a large number of child processes are not closed. Here is my example `func ansible() error { fmt.Println("test") ansiblePlaybookConnectionOptions...