: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 -%} Requirements ~~~~~~~~~~~~ {% if plugin_type == 'module' %} The below requirements are needed on the host that executes this @{ plugin_type }@. {% else %} The below requirements are needed on the local master node that executes this @{ plugin_type }@. {% endif %} {% 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 %}
|
Fact |
Returned |
Description |
---|---|---|
{% for i in range(1, loop.depth) %}
@{ key }@
@{ value.type }@
|
@{ value.returned }@ |
{% if value.description is string %}
@{ value.description | html_ify }@
{% else %}
{% for desc in value.description %}
@{ desc | html_ify }@
{% endfor %}
{% endif %}
{% if value.sample %} Sample:
{# @{ value.sample | html_ify }@ #}
@{ value.sample | html_ify }@
{% endif %}
|
Key |
Returned |
Description |
---|---|---|
{% for i in range(1, loop.depth) %}
@{ key }@
@{ value.type }@
|
@{ value.returned }@ |
{% if value.description is string %}
@{ value.description | html_ify }@
{% else %}
{% for desc in value.description %}
@{ desc | html_ify }@
{% endfor %}
{% endif %}
{% if value.sample %} Sample:
{# @{ value.sample | html_ify }@ #}
@{ value.sample | html_ify }@
{% endif %}
|