:source: @{ source }@ .. _@{ module }@: {% if short_description %} {% set title = module + ' - ' + short_description|convert_symbols_to_format %} {% else %} {% set title = module %} {% endif %} @{ title }@ @{ '+' * title|length }@ {% if version_added is defined and version_added != '' -%} .. versionadded:: @{ version_added | default('') }@ {% endif %} .. contents:: :local: :depth: 2 {# ------------------------------------------ # # Please note: this looks like a core dump # but it isn't one. # --------------------------------------------#} {% if deprecated is defined -%} DEPRECATED ---------- {# use unknown here? skip the fields? #} :Removed in Ansible: version: @{ deprecated['removed_in'] | default('') | string | convert_symbols_to_format }@ :Why: @{ deprecated['why'] | default('') | convert_symbols_to_format }@ :Alternative: @{ deprecated['alternative'] | default('')| convert_symbols_to_format }@ {% endif %} Synopsis -------- {% if description %} {% if description is string -%} * @{ description | convert_symbols_to_format }@ {% else %} {% for desc in description -%} * @{ desc | convert_symbols_to_format }@ {% endfor %} {% endif %} {% endif %} {% if aliases is defined -%} Aliases: @{ ','.join(aliases) }@ {% endif %} {% if requirements %} {% set req = 'Requirements' %} {% if plugin_type == 'module' %} {% set req = req + ' (on host that executes module)' %} {% endif %} {% set req_len = req|length %} @{ req }@ @{ '-' * req_len }@ {% for req in requirements %} * @{ req | convert_symbols_to_format }@ {% endfor %} {% endif %} {% if options -%} Options ------- .. raw:: html
Parameter |
Default |
Choices |
{% if plugin_type != 'module' %}
Configuration |
{% endif %}
Comments |
---|---|---|---|---|
{% for i in range(1, loop.depth) %}
@{ key }@
{% if value.get('required', False) %}
required {% endif %}
{% if value.version_added %}(added in @{value.version_added}@) {% endif %}
|
{# default value #}
{% if value.default %}@{ value.default | html_ify }@{% endif %} |
{# choices #}
{% if value.type == 'bool' %}
|
{# configuration #}
{% if plugin_type != 'module' %}
{% if 'ini' in value %}
ini entries:
{% for ini in value.ini %}
{% endif %}
{% if 'env' in value %}
{% for env in value.env %}
[@{ ini.section }@ ] env:@{ env.name }@
{% endfor %}
{% endif %}
{% if 'vars' in value %}
{% for myvar in value.vars %}
var: @{ myvar.name }@
{% endfor %}
{% endif %}
|
{% endif %}
{# description #}
{% if value.description is string %}
@{ value.description | replace('\n', '\n ') | html_ify }@
{% else %}
{% for desc in value.description %}
@{ desc | replace('\n', '\n ') | html_ify }@
{% endfor %}
{% endif %}
{% if 'aliases' in value and value.aliases %}
aliases: @{ value.aliases|join(', ') }@
{% endif %}
|
Name |
Description |
Returned |
Type |
Sample |
---|---|---|---|---|
{% for i in range(1, loop.depth) %}
@{ key }@
|
{% if value.description is string %}
@{ value.description | replace('\n', '\n ') | html_ify }@
{% else %}
{% for desc in value.description %}
@{ desc | replace('\n', '\n ') | html_ify }@
{% endfor %}
{% endif %}
|
@{ value.returned }@ |
@{ value.type }@ |
@{ value.sample | replace('\n', '\n ') | html_ify }@ |