728x90
ansible-doc 명령
ansible-doc -h
$ ansible-doc -h
usage: ansible-doc [-h] [--version] [-v] [-M MODULE_PATH] [--playbook-dir BASEDIR]
[-t {become,cache,callback,cliconf,connection,httpapi,inventory,lookup,netconf,shell,vars,module,strategy,role,keyword}] [-j]
[-r ROLES_PATH] [-e ENTRY_POINT | -s | -F | -l | --metadata-dump]
[plugin [plugin ...]]
plugin documentation tool
positional arguments:
plugin Plugin
optional arguments:
--metadata-dump **For internal testing only** Dump json metadata for all plugins.
--playbook-dir BASEDIR
Since this tool does not use playbooks, use this as a substitute playbook directory.This sets the relative path for many features
including roles/ group_vars/ etc.
--version show program's version number, config file location, configured module search path, module location, executable location and exit
-F, --list_files Show plugin names and their source files without summaries (implies --list). A supplied argument will be used for filtering, can
be a namespace or full collection name.
-M MODULE_PATH, --module-path MODULE_PATH
prepend colon-separated path(s) to module library (default=~/.ansible/plugins/modules:/usr/share/ansible/plugins/modules)
-e ENTRY_POINT, --entry-point ENTRY_POINT
Select the entry point for role(s).
-h, --help show this help message and exit
-j, --json Change output into json format.
-l, --list List available plugins. A supplied argument will be used for filtering, can be a namespace or full collection name.
-r ROLES_PATH, --roles-path ROLES_PATH
The path to the directory containing your roles.
-s, --snippet Show playbook snippet for these plugin types: inventory, lookup, module
-t {become,cache,callback,cliconf,connection,httpapi,inventory,lookup,netconf,shell,vars,module,strategy,role,keyword}, --type {become,cache,callback,cliconf,connection,httpapi,inventory,lookup,netconf,shell,vars,module,strategy,role,keyword}
Choose which plugin type (defaults to "module"). Available plugin types are : ('become', 'cache', 'callback', 'cliconf',
'connection', 'httpapi', 'inventory', 'lookup', 'netconf', 'shell', 'vars', 'module', 'strategy', 'role', 'keyword')
-v, --verbose verbose mode (-vvv for more, -vvvv to enable connection debugging)
See man pages for Ansible CLI options or website for tutorials https://docs.ansible.com
모듈 목록 확인
ansible-doc -l
ansible ping 모듈
ansible-doc ping
ansible-doc -s ping
728x90
'리눅스' 카테고리의 다른 글
테라폼(Terraform) CLI를 설치하는 방법 (0) | 2022.08.25 |
---|---|
[iac][ansible] ansible-config 명령 (0) | 2022.08.25 |
[iac][ansible] 앤서블 인벤토리 (0) | 2022.08.25 |
[iac][ansible] 앤서블 아키텍처 (0) | 2022.08.25 |
[iac][ansible] ansible-vault 명령 (0) | 2022.08.25 |