Versions in this module Expand all Collapse all v1 v1.5.111 Sep 22, 2022 Changes in this version + const ArgsFlag + const AskVaultPasswordFlag + const BackgroundFlag + const CheckFlag + const DefaultAnsibleAdhocBinary + const DiffFlag + const ExtraVarsFlag + const ForksFlag + const InventoryFlag + const LimitFlag + const ListHostsFlag + const ModuleNameFlag + const ModulePathFlag + const OneLineFlag + const PlaybookDirFlag + const PollFlag + const SyntaxCheckFlag + const TreeFlag + const VaultIDFlag + const VaultPasswordFileFlag + const VerboseFlag + const VersionFlag + type AnsibleAdhocCmd struct + Binary string + ConnectionOptions *options.AnsibleConnectionOptions + Exec execute.Executor + Options *AnsibleAdhocOptions + Pattern string + PrivilegeEscalationOptions *options.AnsiblePrivilegeEscalationOptions + StdoutCallback string + func (a *AnsibleAdhocCmd) Command() ([]string, error) + func (a *AnsibleAdhocCmd) Run(ctx context.Context) error + func (a *AnsibleAdhocCmd) String() string + type AnsibleAdhocOptions struct + Args string + AskVaultPassword bool + Background int + Check bool + Diff bool + ExtraVars map[string]interface{} + ExtraVarsFile []string + Forks string + Inventory string + Limit string + ListHosts bool + ModuleName string + ModulePath string + OneLine bool + PlaybookDir string + Poll int + SyntaxCheck bool + Tree string + VaultID string + VaultPasswordFile string + Verbose bool + Version bool + func (o *AnsibleAdhocOptions) AddExtraVar(name string, value interface{}) error + func (o *AnsibleAdhocOptions) AddExtraVarsFile(file string) error + func (o *AnsibleAdhocOptions) GenerateAnsibleAdhocOptions() ([]string, error) + func (o *AnsibleAdhocOptions) String() string + type AnsibleAdhocOptionsFunc func(*AnsibleAdhocCmd)