docs(ansible): add AX usage examples
Some checks are pending
CI / test (push) Waiting to run
CI / auto-fix (push) Waiting to run
CI / auto-merge (push) Waiting to run

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Virgil 2026-04-03 10:56:05 +00:00
parent 762a47f11f
commit 78eac4e8f2
2 changed files with 8 additions and 0 deletions

4
ssh.go
View file

@ -213,6 +213,10 @@ func (c *SSHClient) Close() error {
}
// BecomeState returns the current privilege escalation settings.
//
// Example:
//
// become, user, password := client.BecomeState()
func (c *SSHClient) BecomeState() (bool, string, string) {
c.mu.Lock()
defer c.mu.Unlock()

View file

@ -491,6 +491,10 @@ var KnownModules = []string{
// ModuleAliases maps accepted short-form module names to their canonical
// fully-qualified collection names.
//
// Example:
//
// module := ModuleAliases["ansible.builtin.authorized_key"]
var ModuleAliases = map[string]string{
"authorized_key": "ansible.posix.authorized_key",
"ansible.builtin.authorized_key": "ansible.posix.authorized_key",