MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / RunPing

Method RunPing

internal/plugins/ansible/runner.go:79–81  ·  view source on GitHub ↗

RunPing executes `ansible -m ping` using the generated inventory.

(ctx context.Context, inventoryText, inventoryFormat, limit string, extraArgs []string)

Source from the content-addressed store, hash-verified

77
78// RunPing executes `ansible -m ping` using the generated inventory.
79func (r *Runner) RunPing(ctx context.Context, inventoryText, inventoryFormat, limit string, extraArgs []string) CommandResult {
80 return r.RunPingStream(ctx, inventoryText, inventoryFormat, limit, extraArgs, nil)
81}
82
83// RunPingStream executes `ansible -m ping` and streams output lines when handler is provided.
84func (r *Runner) RunPingStream(

Callers

nothing calls this directly

Calls 1

RunPingStreamMethod · 0.95

Tested by

no test coverage detected