1ANSIBLE-DOC(1) System administration commands ANSIBLE-DOC(1)
2
3
4
6 ansible-doc - plugin documentation tool
7
9 usage: ansible-doc [-h] [--version] [-v] [-M MODULE_PATH]
10 [--playbook-dir BASEDIR] [-t {become,cache,callback,cliconf,con‐
11 nection,httpapi,inventory,lookup,netconf,shell,vars,mod‐
12 ule,strategy,role,keyword}] [-j] [-r ROLES_PATH] [-e ENTRY_POINT
13 | -s | -F | -l | --metadata-dump] [plugin [plugin ...]]
14
16 displays information on modules installed in Ansible libraries. It
17 displays a terse listing of plugins and their short descriptions, pro‐
18 vides a printout of their DOCUMENTATION strings, and it can create a
19 short "snippet" which can be pasted into a playbook.
20
22 Plugin
23
24 --metadata-dump
25 For internal testing only Dump json metadata for all plugins.
26
27 --playbook-dir 'BASEDIR'
28 Since this tool does not use playbooks, use this as a substitute
29 playbook directory.This sets the relative path for many features in‐
30 cluding roles/ group_vars/ etc.
31
32 --version
33 show program's version number, config file location, configured mod‐
34 ule search path, module location, executable location and exit
35
36 -F, --list_files
37 Show plugin names and their source files without summaries (implies
38 --list). A supplied argument will be used for filtering, can be a
39 namespace or full collection name.
40
41 -M, --module-path
42 prepend colon-separated path(s) to module library (default=~/.ansi‐
43 ble/plugins/modules:/usr/share/ansible/plugins/modules)
44
45 -e 'ENTRY_POINT', --entry-point 'ENTRY_POINT'
46 Select the entry point for role(s).
47
48 -h, --help
49 show this help message and exit
50
51 -j, --json
52 Change output into json format.
53
54 -l, --list
55 List available plugins. A supplied argument will be used for filter‐
56 ing, can be a namespace or full collection name.
57
58 -r, --roles-path
59 The path to the directory containing your roles.
60
61 -s, --snippet
62 Show playbook snippet for these plugin types: inventory, lookup,
63 module
64
65 -t 'TYPE', --type 'TYPE'
66 Choose which plugin type (defaults to "module"). Available plugin
67 types are : ('become', 'cache', 'callback', 'cliconf', 'connection',
68 'httpapi', 'inventory', 'lookup', 'netconf', 'shell', 'vars', 'mod‐
69 ule', 'strategy', 'role', 'keyword')
70
71 -v, --verbose
72 verbose mode (-vvv for more, -vvvv to enable connection debugging)
73
75 The following environment variables may be specified.
76
77 ANSIBLE_CONFIG -- Specify override location for the ansible config file
78
79 Many more are available for most options in ansible.cfg
80
81 For a full list check https://docs.ansible.com/. or use the ansi‐
82 ble-config command.
83
85 /etc/ansible/ansible.cfg -- Config file, used if present
86
87 ~/.ansible.cfg -- User config file, overrides the default config if
88 present
89
90 ./ansible.cfg -- Local config file (in current working directory) as‐
91 sumed to be 'project specific' and overrides the rest if present.
92
93 As mentioned above, the ANSIBLE_CONFIG environment variable will over‐
94 ride all others.
95
97 Ansible was originally written by Michael DeHaan.
98
100 Copyright © 2018 Red Hat, Inc | Ansible. Ansible is released under the
101 terms of the GPLv3 license.
102
104 ansible [22m(1), ansible-config [22m(1), ansible-console (1), ansible-galaxy
105 (1), ansible-inventory (1), ansible-playbook (1), ansible-pull (1), an‐
106 sible-vault (1)
107
108 Extensive documentation is available in the documentation site: <‐
109 https://docs.ansible.com>. IRC and mailing list info can be found in
110 file CONTRIBUTING.md, available in: <‐
111 https://github.com/ansible/ansible>
112
113
114
115
116Ansible 2.12.7 ANSIBLE-DOC(1)