## @{ module | jpfunc }@ {# ------------------------------------------ # # This is Github-flavored Markdown # --------------------------------------------#} {% if version_added is defined -%} New in version @{ version_added }@. {% endif %} {% for desc in description -%} @{ desc | jpfunc }@ {% endfor %} {% if options -%} {% for (k,v) in options.iteritems() %} {% endfor %}
parameter required default choices comments
@{ k }@ {% if v.get('required', False) %}yes{% else %}no{% endif %} {% if v['default'] %}@{ v['default'] }@{% endif %}
    {% for choice in v.get('choices',[]) -%}
  • @{ choice }@
  • {% endfor -%}
{% for desc in v.description -%}@{ desc | html_ify }@{% endfor -%}{% if v['version_added'] %} (added in Ansible @{v['version_added']}@){% endif %}
{% endif %} {% if examples or plainexamples %} #### Examples {% endif %} {% for example in examples %} {% if example['description'] %} * @{ example['description'] | jpfunc }@ {% endif %} ``` @{ example['code'] }@ ``` {% endfor %} {% if plainexamples -%} ``` @{ plainexamples }@ ``` {% endif %} {% if notes %} #### Notes {% for note in notes %} @{ note | jpfunc }@ {% endfor %} {% endif %}