Standardize on name and type (for callbacks).
This commit is contained in:
parent
69a6311ae5
commit
951570316b
57 changed files with 52 additions and 58 deletions
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
become: runas
|
||||
name: runas
|
||||
short_description: Run As user
|
||||
description:
|
||||
- This become plugins allows your remote/login user to execute commands as another user via the windows runas facility.
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
become: su
|
||||
name: su
|
||||
short_description: Substitute User
|
||||
description:
|
||||
- This become plugins allows your remote/login user to execute commands as another user via the su utility.
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
become: sudo
|
||||
name: sudo
|
||||
short_description: Substitute User DO
|
||||
description:
|
||||
- This become plugins allows your remote/login user to execute commands as another user via the sudo utility.
|
||||
|
|
2
lib/ansible/plugins/cache/jsonfile.py
vendored
2
lib/ansible/plugins/cache/jsonfile.py
vendored
|
@ -7,7 +7,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
cache: jsonfile
|
||||
name: jsonfile
|
||||
short_description: JSON formatted files.
|
||||
description:
|
||||
- This cache uses JSON formatted, per host, files saved to the filesystem.
|
||||
|
|
2
lib/ansible/plugins/cache/memory.py
vendored
2
lib/ansible/plugins/cache/memory.py
vendored
|
@ -7,7 +7,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
cache: memory
|
||||
name: memory
|
||||
short_description: RAM backed, non persistent
|
||||
description:
|
||||
- RAM backed cache that is not persistent.
|
||||
|
|
|
@ -6,7 +6,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
callback: default
|
||||
name: default
|
||||
type: stdout
|
||||
short_description: default Ansible screen output
|
||||
version_added: historical
|
||||
|
|
|
@ -6,7 +6,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
callback: junit
|
||||
name: junit
|
||||
type: aggregate
|
||||
short_description: write playbook output to a JUnit file.
|
||||
version_added: historical
|
||||
|
|
|
@ -7,7 +7,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
callback: minimal
|
||||
name: minimal
|
||||
type: stdout
|
||||
short_description: minimal Ansible screen output
|
||||
version_added: historical
|
||||
|
|
|
@ -7,7 +7,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
callback: oneline
|
||||
name: oneline
|
||||
type: stdout
|
||||
short_description: oneline Ansible screen output
|
||||
version_added: historical
|
||||
|
|
|
@ -6,8 +6,8 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
callback: tree
|
||||
callback_type: notification
|
||||
name: tree
|
||||
type: notification
|
||||
requirements:
|
||||
- invoked in the command line
|
||||
short_description: Save host events to files
|
||||
|
|
|
@ -6,7 +6,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
connection: local
|
||||
name: local
|
||||
short_description: execute on controller
|
||||
description:
|
||||
- This connection plugin allows ansible to execute tasks on the Ansible 'controller' instead of on a remote host.
|
||||
|
|
|
@ -6,7 +6,7 @@ __metaclass__ = type
|
|||
|
||||
DOCUMENTATION = """
|
||||
author: Ansible Core Team
|
||||
connection: paramiko
|
||||
name: paramiko
|
||||
short_description: Run tasks via python ssh (paramiko)
|
||||
description:
|
||||
- Use the python ssh implementation (Paramiko) to connect to targets
|
||||
|
|
|
@ -6,7 +6,7 @@ __metaclass__ = type
|
|||
|
||||
DOCUMENTATION = """
|
||||
author: Ansible Core Team
|
||||
connection: psrp
|
||||
name: psrp
|
||||
short_description: Run tasks over Microsoft PowerShell Remoting Protocol
|
||||
description:
|
||||
- Run commands or put/fetch on a target via PSRP (WinRM plugin)
|
||||
|
|
|
@ -8,7 +8,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
connection: ssh
|
||||
name: ssh
|
||||
short_description: connect via ssh client binary
|
||||
description:
|
||||
- This connection plugin allows ansible to communicate to the target machines via normal ssh command line.
|
||||
|
|
|
@ -7,7 +7,7 @@ __metaclass__ = type
|
|||
|
||||
DOCUMENTATION = """
|
||||
author: Ansible Core Team
|
||||
connection: winrm
|
||||
name: winrm
|
||||
short_description: Run tasks over Microsoft's WinRM
|
||||
description:
|
||||
- Run commands or put/fetch on a target via WinRM
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
inventory: advanced_host_list
|
||||
name: advanced_host_list
|
||||
version_added: "2.4"
|
||||
short_description: Parses a 'host list' with ranges
|
||||
description:
|
||||
|
|
|
@ -6,7 +6,6 @@ __metaclass__ = type
|
|||
|
||||
DOCUMENTATION = '''
|
||||
name: auto
|
||||
plugin_type: inventory
|
||||
author:
|
||||
- Matt Davis <@nitzmahone>
|
||||
version_added: "2.5"
|
||||
|
|
|
@ -6,7 +6,6 @@ __metaclass__ = type
|
|||
|
||||
DOCUMENTATION = '''
|
||||
name: constructed
|
||||
plugin_type: inventory
|
||||
version_added: "2.4"
|
||||
short_description: Uses Jinja2 to construct vars and groups based on existing inventory.
|
||||
description:
|
||||
|
|
|
@ -6,7 +6,6 @@ __metaclass__ = type
|
|||
|
||||
DOCUMENTATION = '''
|
||||
name: generator
|
||||
plugin_type: inventory
|
||||
version_added: "2.6"
|
||||
short_description: Uses Jinja2 to construct hosts and groups from patterns
|
||||
description:
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = r'''
|
||||
inventory: host_list
|
||||
name: host_list
|
||||
version_added: "2.4"
|
||||
short_description: Parses a 'host list' string
|
||||
description:
|
||||
|
|
|
@ -4,7 +4,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
inventory: ini
|
||||
name: ini
|
||||
version_added: "2.4"
|
||||
short_description: Uses an Ansible INI file as inventory source.
|
||||
description:
|
||||
|
|
|
@ -6,7 +6,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
inventory: script
|
||||
name: script
|
||||
version_added: "2.4"
|
||||
short_description: Executes an inventory script that returns JSON
|
||||
options:
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = r'''
|
||||
inventory: toml
|
||||
name: toml
|
||||
version_added: "2.8"
|
||||
short_description: Uses a specific TOML file as an inventory source.
|
||||
description:
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
inventory: yaml
|
||||
name: yaml
|
||||
version_added: "2.4"
|
||||
short_description: Uses a specific YAML file as an inventory source.
|
||||
description:
|
||||
|
|
|
@ -4,7 +4,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: config
|
||||
name: config
|
||||
author: Ansible Core
|
||||
version_added: "2.5"
|
||||
short_description: Lookup current Ansible configuration values
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: csvfile
|
||||
name: csvfile
|
||||
author: Jan-Piet Mens (@jpmens) <jpmens(at)gmail.com>
|
||||
version_added: "1.5"
|
||||
short_description: read data from a TSV or CSV file
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: dict
|
||||
name: dict
|
||||
version_added: "1.5"
|
||||
short_description: returns key/value pair items from dictionaries
|
||||
description:
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: env
|
||||
name: env
|
||||
author: Jan-Piet Mens (@jpmens) <jpmens(at)gmail.com>
|
||||
version_added: "0.9"
|
||||
short_description: Read the value of environment variables
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: file
|
||||
name: file
|
||||
author: Daniel Hokka Zakrisson <daniel@hozac.com>
|
||||
version_added: "0.9"
|
||||
short_description: read file contents
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: fileglob
|
||||
name: fileglob
|
||||
author: Michael DeHaan <michael.dehaan@gmail.com>
|
||||
version_added: "1.4"
|
||||
short_description: list files matching a pattern
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: first_found
|
||||
name: first_found
|
||||
author: Seth Vidal <skvidal@fedoraproject.org>
|
||||
version_added: historical
|
||||
short_description: return first file found from list
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: indexed_items
|
||||
name: indexed_items
|
||||
author: Michael DeHaan <michael.dehaan@gmail.com>
|
||||
version_added: "1.3"
|
||||
short_description: rewrites lists to return 'indexed items'
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: ini
|
||||
name: ini
|
||||
author: Yannig Perre <yannig.perre(at)gmail.com>
|
||||
version_added: "2.0"
|
||||
short_description: read data from a ini file
|
||||
|
|
|
@ -7,7 +7,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: inventory_hostnames
|
||||
name: inventory_hostnames
|
||||
author:
|
||||
- Michael DeHaan <michael.dehaan@gmail.com>
|
||||
- Steven Dossett <sdossett@panath.com>
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: items
|
||||
name: items
|
||||
author: Michael DeHaan <michael.dehaan@gmail.com>
|
||||
version_added: historical
|
||||
short_description: list of items
|
||||
|
|
|
@ -6,7 +6,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: lines
|
||||
name: lines
|
||||
author: Daniel Hokka Zakrisson <daniel@hozac.com>
|
||||
version_added: "0.9"
|
||||
short_description: read lines from command
|
||||
|
|
|
@ -7,7 +7,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: list
|
||||
name: list
|
||||
author: Ansible core team
|
||||
version_added: "2.0"
|
||||
short_description: simply returns what it is given.
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: nested
|
||||
name: nested
|
||||
version_added: "1.1"
|
||||
short_description: composes a list with nested elements of other lists
|
||||
description:
|
||||
|
|
|
@ -7,7 +7,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: password
|
||||
name: password
|
||||
version_added: "1.1"
|
||||
author:
|
||||
- Daniel Hokka Zakrisson <daniel@hozac.com>
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = r"""
|
||||
lookup: pipe
|
||||
name: pipe
|
||||
author: Daniel Hokka Zakrisson <daniel@hozac.com>
|
||||
version_added: "0.9"
|
||||
short_description: read output from a command
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: random_choice
|
||||
name: random_choice
|
||||
author: Michael DeHaan <michael.dehaan@gmail.com>
|
||||
version_added: "1.1"
|
||||
short_description: return random element from list
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: sequence
|
||||
name: sequence
|
||||
author: Jayson Vantuyl <jayson@aggressive.ly>
|
||||
version_added: "1.0"
|
||||
short_description: generate a list based on a number sequence
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: subelements
|
||||
name: subelements
|
||||
author: Serge van Ginderachter <serge@vanginderachter.be>
|
||||
version_added: "1.4"
|
||||
short_description: traverse nested key from a list of dictionaries
|
||||
|
|
|
@ -6,7 +6,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: template
|
||||
name: template
|
||||
author: Michael DeHaan <michael.dehaan@gmail.com>
|
||||
version_added: "0.9"
|
||||
short_description: retrieve contents of file after templating with Jinja2
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: together
|
||||
name: together
|
||||
author: Bradley Young <young.bradley@gmail.com>
|
||||
version_added: '1.3'
|
||||
short_description: merges lists into synchronized list
|
||||
|
|
|
@ -4,7 +4,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: unvault
|
||||
name: unvault
|
||||
author: ansible core team
|
||||
version_added: "2.10"
|
||||
short_description: read vaulted file(s) contents
|
||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: url
|
||||
name: url
|
||||
author: Brian Coca (@bcoca)
|
||||
version_added: "1.9"
|
||||
short_description: return contents from URL
|
||||
|
|
|
@ -4,7 +4,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: varnames
|
||||
name: varnames
|
||||
author: Ansible Core
|
||||
version_added: "2.8"
|
||||
short_description: Lookup matching variable names
|
||||
|
|
|
@ -4,7 +4,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = """
|
||||
lookup: vars
|
||||
name: vars
|
||||
author: Ansible Core
|
||||
version_added: "2.5"
|
||||
short_description: Lookup templated value of variables
|
||||
|
|
|
@ -5,7 +5,6 @@ __metaclass__ = type
|
|||
|
||||
DOCUMENTATION = '''
|
||||
name: cmd
|
||||
plugin_type: shell
|
||||
version_added: '2.8'
|
||||
short_description: Windows Command Prompt
|
||||
description:
|
||||
|
|
|
@ -6,7 +6,6 @@ __metaclass__ = type
|
|||
|
||||
DOCUMENTATION = '''
|
||||
name: powershell
|
||||
plugin_type: shell
|
||||
version_added: historical
|
||||
short_description: Windows PowerShell
|
||||
description:
|
||||
|
|
|
@ -6,7 +6,6 @@ __metaclass__ = type
|
|||
|
||||
DOCUMENTATION = '''
|
||||
name: sh
|
||||
plugin_type: shell
|
||||
short_description: "POSIX shell (/bin/sh)"
|
||||
version_added: historical
|
||||
description:
|
||||
|
|
|
@ -16,7 +16,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
strategy: debug
|
||||
name: debug
|
||||
short_description: Executes tasks in interactive debug session.
|
||||
description:
|
||||
- Task execution is 'linear' but controlled by an interactive debug session.
|
||||
|
|
|
@ -19,7 +19,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
strategy: free
|
||||
name: free
|
||||
short_description: Executes tasks without waiting for all hosts
|
||||
description:
|
||||
- Task execution is as fast as possible per batch as defined by C(serial) (default all).
|
||||
|
|
|
@ -19,7 +19,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
strategy: host_pinned
|
||||
name: host_pinned
|
||||
short_description: Executes tasks on each host without interruption
|
||||
description:
|
||||
- Task execution is as fast as possible per host in batch as defined by C(serial) (default all).
|
||||
|
|
|
@ -19,7 +19,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
strategy: linear
|
||||
name: linear
|
||||
short_description: Executes tasks in a linear fashion
|
||||
description:
|
||||
- Task execution is in lockstep per host batch as defined by C(serial) (default all).
|
||||
|
|
|
@ -19,7 +19,7 @@ from __future__ import (absolute_import, division, print_function)
|
|||
__metaclass__ = type
|
||||
|
||||
DOCUMENTATION = '''
|
||||
vars: host_group_vars
|
||||
name: host_group_vars
|
||||
version_added: "2.4"
|
||||
short_description: In charge of loading group_vars and host_vars
|
||||
requirements:
|
||||
|
|
Loading…
Reference in a new issue