mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Document new types of plugins.
This commit is contained in:
parent
da90c5f75e
commit
21d858f36d
1 changed files with 15 additions and 1 deletions
|
@ -303,7 +303,19 @@ directory.
|
||||||
Lookup Plugins
|
Lookup Plugins
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
Language constructs like "with_fileglob" are implemnted via lookup plugins. Just like other plugin types, you can write your own.
|
Language constructs like "with_fileglob" and "with_items" are implemented via lookup plugins. Just like other plugin types, you can write your own.
|
||||||
|
|
||||||
|
Vars Plugins
|
||||||
|
------------
|
||||||
|
|
||||||
|
Playbook constructs like 'host_vars' and 'group_vars' work via 'vars' plugins. They inject additional variable
|
||||||
|
data into ansible runs that did not come from an inventory, playbook, or command line. Note that variables
|
||||||
|
can also be returned from inventory, so in most cases, you won't need to write or understand vars_plugins.
|
||||||
|
|
||||||
|
Filter Plugins
|
||||||
|
--------------
|
||||||
|
|
||||||
|
If you want more Jinja2 filters available in a Jinja2 template (filters like to_yaml and to_json are provided by default), they can be extended by writing a filter plugin.
|
||||||
|
|
||||||
Distributing Plugins
|
Distributing Plugins
|
||||||
--------------------
|
--------------------
|
||||||
|
@ -317,6 +329,8 @@ to /usr/share/ansible/plugins, in a subfolder for each plugin type::
|
||||||
* lookup_plugins
|
* lookup_plugins
|
||||||
* callback_plugins
|
* callback_plugins
|
||||||
* connection_plugins
|
* connection_plugins
|
||||||
|
* filter_plugins
|
||||||
|
* vars_plugins
|
||||||
|
|
||||||
To change this path, edit the ansible configuration file.
|
To change this path, edit the ansible configuration file.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue