docs(ansible): add AX usage examples
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
762a47f11f
commit
78eac4e8f2
2 changed files with 8 additions and 0 deletions
4
ssh.go
4
ssh.go
|
|
@ -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()
|
||||
|
|
|
|||
4
types.go
4
types.go
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue