2012-09-26 20:41:44 +02:00
|
|
|
.TH ANSIBLE.@{ module | upper }@ 5 "@{ now_date }@" "@{ ansible_version }@" "ANSIBLE MODULES"
|
|
|
|
." generated from @{ filename }@
|
|
|
|
.SH NAME
|
|
|
|
@{ module }@ \- @{ short_description }@
|
|
|
|
." ------ DESCRIPTION
|
|
|
|
.SH DESCRIPTION
|
2012-09-30 15:06:18 +02:00
|
|
|
{% for desc in description %}
|
2012-09-26 20:41:44 +02:00
|
|
|
.PP
|
|
|
|
@{ desc | jpfunc }@
|
|
|
|
{% endfor %}
|
|
|
|
." ------ OPTIONS
|
|
|
|
."
|
|
|
|
."
|
2012-09-30 15:06:18 +02:00
|
|
|
{% if options %}
|
2012-09-26 20:41:44 +02:00
|
|
|
.SH OPTIONS
|
2012-09-28 09:59:43 +02:00
|
|
|
{% for (k,v) in options.iteritems() %}
|
2012-09-30 15:06:18 +02:00
|
|
|
|
2012-09-28 09:59:43 +02:00
|
|
|
.IP @{ k }@
|
2012-09-30 15:06:18 +02:00
|
|
|
{% for desc in v.description %}@{ desc | jpfunc }@{% endfor %}
|
2012-09-28 09:59:43 +02:00
|
|
|
{% if v.get('choices') %}
|
2012-09-30 15:06:18 +02:00
|
|
|
|
2012-09-26 20:41:44 +02:00
|
|
|
.IR Choices :
|
2012-09-30 15:06:18 +02:00
|
|
|
{% for choice in v.get('choices',[]) %}@{ choice }@{% if not loop.last %},{%else%}.{%endif%}{% endfor %}{% endif %}
|
|
|
|
{% if v.get('required') %}(required){% endif %}
|
|
|
|
{% if v.get('default') %} (default: @{ v.get('default') }@){% endif %}
|
2012-09-26 20:41:44 +02:00
|
|
|
{#---------------------------------------------- #}
|
2012-09-30 15:06:18 +02:00
|
|
|
{% if v.get('version_added') %}
|
2012-09-28 09:59:43 +02:00
|
|
|
(Added in Ansible version @{ v.get('version_added') }@.)
|
2012-09-30 15:06:18 +02:00
|
|
|
{% endif %}
|
2012-09-28 09:59:43 +02:00
|
|
|
{% endfor %}
|
2012-09-26 20:41:44 +02:00
|
|
|
{% endif %}
|
|
|
|
."
|
|
|
|
."
|
|
|
|
." ------ NOTES
|
2012-09-30 15:06:18 +02:00
|
|
|
{% if notes %}
|
2012-09-26 20:41:44 +02:00
|
|
|
.SH NOTES
|
2012-09-30 15:06:18 +02:00
|
|
|
{% for note in notes %}
|
2012-09-26 20:41:44 +02:00
|
|
|
.PP
|
|
|
|
@{ note | jpfunc }@
|
2012-09-30 15:06:18 +02:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2012-09-26 20:41:44 +02:00
|
|
|
."
|
|
|
|
."
|
|
|
|
." ------ EXAMPLES
|
2012-09-30 15:06:18 +02:00
|
|
|
{% if examples is defined %}
|
2012-09-26 20:41:44 +02:00
|
|
|
.SH EXAMPLES
|
2012-09-30 15:06:18 +02:00
|
|
|
{% for e in examples %}
|
2012-09-26 20:41:44 +02:00
|
|
|
.PP
|
|
|
|
.nf
|
|
|
|
@{ e['code'] }@
|
|
|
|
.fi
|
2012-09-30 15:06:18 +02:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2012-09-26 20:41:44 +02:00
|
|
|
." ------- AUTHOR
|
2012-09-30 15:06:18 +02:00
|
|
|
{% if author is defined %}
|
2012-09-26 20:41:44 +02:00
|
|
|
.SH AUTHOR
|
|
|
|
@{ author }@
|
2012-09-30 15:06:18 +02:00
|
|
|
{% endif %}
|
2012-09-26 20:41:44 +02:00
|
|
|
.SH SEE ALSO
|
|
|
|
.IR ansible (1),
|
|
|
|
.I http://ansible.github.com/modules.html#@{docuri}@
|