Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

34
tldr/ansible-doc Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ansible-doc
> Display information on modules installed in Ansible libraries.
> Display a terse listing of plugins and their short descriptions.
> More information: <https://docs.ansible.com/ansible/latest/cli/ansible-doc.html>.
- List available action plugins (modules):
`ansible-doc --list`
- List available plugins of a specific type:
`ansible-doc --type {{become|cache|callback|cliconf|connection|...}} --list`
- Show information about a specific action plugin (module):
`ansible-doc {{plugin_name}}`
- Show information about a plugin with a specific type:
`ansible-doc --type {{become|cache|callback|cliconf|connection|...}} {{plugin_name}}`
- Show the playbook snippet for action plugin (modules):
`ansible-doc --snippet {{plugin_name}}`
- Show information about an action plugin (module) as JSON:
`ansible-doc --json {{plugin_name}}`