:source: @{ source }@ .. _@{ module }@_@{ plugin_type }@: {% for alias in aliases %} .. _@{ alias }@: {% endfor %} {% 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 -%} Parameters ---------- .. raw:: html
Parameter |
Choices/Defaults |
{% 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 / choices #}
{# Turn boolean values in 'yes' and 'no' values #}
{% if value.default is defined %}
{% if value.default == true %}
{% set _x = value.update({'default': 'yes'}) %}
{% elif value.default == false %}
{% set _x = value.update({'default': 'no'}) %}
{% endif %}
{% endif %}
{% if value.type == 'bool' %}
{% set _x = value.update({'choices': ['no', 'yes']}) %}
{% endif %}
{# Show possible choices and highlight details #}
{% if value.choices %}
@{ value.default | escape }@
{% endif %}
|
{# 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(', ') }@ |
Fact |
Returned |
Description |
---|---|---|
{% for i in range(1, loop.depth) %}
@{ key }@
@{ value.type }@
|
@{ value.returned | html_ify }@ |
{% if value.description is string %}
@{ value.description | html_ify }@
{% else %}
{% for desc in value.description %}
@{ desc | html_ify }@
{% endfor %}
{% endif %}
{% if value.sample is defined and value.sample %} Sample:
{# TODO: The sample should be escaped, using | escape or | htmlify, but both mess things up beyond repair with dicts #}
@{ value.sample | replace('\n', '\n ') | html_ify }@
{% endif %}
|
Key |
Returned |
Description |
---|---|---|
{% for i in range(1, loop.depth) %}
@{ key }@
@{ value.type }@
|
@{ value.returned | html_ify }@ |
{% if value.description is string %}
@{ value.description | html_ify }@
{% else %}
{% for desc in value.description %}
@{ desc | html_ify }@
{% endfor %}
{% endif %}
{% if value.sample is defined and value.sample %} Sample:
{# TODO: The sample should be escaped, using |escape or |htmlify, but both mess things up beyond repair with dicts #}
@{ value.sample | replace('\n', '\n ') | html_ify }@
{% endif %}
|