b233f3f296
* updated docs - for devs: - added inventory/vars section - made some updates to general section and other plugin types - for users: - added 'user' plugin section to start describing the plugins - docs on types, what they are and how to use - removed ref to deleted AUTHORS file - corrected several typos/headers - added descriptions to config.rst template - ignore generated files for cli/plugins and config - remove new generated files on `make clean` - moved details from devguid and intro doc to plugin specific pages - pretied up lookup notes - changed precedence ref to not conflict config - removed duplicate config data, as config is autogenerated and up to date - put new plugins under playbooks - added `pass` cause rst/python dislikes fractions - removed dupe in .gitignore, alpha sorted to avoid moar dupes - added try cause rst/python freaks out * generate plugins into their own dir only do plugins that support docs use toctree from main plugins page
124 lines
2.9 KiB
Django/Jinja
124 lines
2.9 KiB
Django/Jinja
{% set name = ('ansible' if cli == 'adhoc' else 'ansible-%s' % cli) -%}
|
|
{{name}}(1)
|
|
{{ '=' * ((name|length|int) + 3) }}
|
|
:doctype: manpage
|
|
:encoding: utf-8
|
|
:lang: en
|
|
:man source: Ansible
|
|
:man version: %VERSION%
|
|
:man manual: System administration commands
|
|
|
|
NAME
|
|
----
|
|
ansible{% if cli != 'adhoc' %}-{{cli}}{% endif %} - {{short_desc|default('')}}
|
|
|
|
|
|
SYNOPSIS
|
|
--------
|
|
{{ usage|replace('%prog', name) }}
|
|
|
|
|
|
DESCRIPTION
|
|
-----------
|
|
{{ long_desc|default('', True)|wordwrap }}
|
|
|
|
{% if options %}
|
|
COMMON OPTIONS
|
|
--------------
|
|
{% for option in options|sort(attribute='options') %}
|
|
{% for switch in option['options'] %}*{{switch}}*{% if option['arg'] %} '{{option['arg']}}'{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}::
|
|
|
|
{{ option['desc'] }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if arguments %}
|
|
ARGUMENTS
|
|
---------
|
|
|
|
{% for arg in arguments %}
|
|
{{ arg }}
|
|
|
|
{{ (arguments[arg]|default(' '))|wordwrap }}
|
|
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if actions %}
|
|
ACTIONS
|
|
-------
|
|
{% for action in actions %}
|
|
*{{ action }}*::: {{ (actions[action]['desc']|default(' '))|wordwrap}}
|
|
|
|
{% if actions[action]['options'] %}
|
|
{% for option in actions[action]['options']|sort %}
|
|
{% for switch in option['options'] if switch in actions[action]['option_names'] %}*{{switch}}*{% if option['arg'] %} '{{option['arg']}}'{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}::
|
|
|
|
{{ (option['desc']) }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
|
|
{% if inventory %}
|
|
INVENTORY
|
|
---------
|
|
|
|
Ansible stores the hosts it can potentially operate on in an inventory.
|
|
This can be an YAML file, ini-like file, a script, directory, list, etc.
|
|
For additional options, see the documentation on http://docs.ansible.com/.
|
|
|
|
{% endif %}
|
|
ENVIRONMENT
|
|
-----------
|
|
|
|
The following environment variables may be specified.
|
|
|
|
{% if inventory %}
|
|
ANSIBLE_INVENTORY -- Override the default ansible inventory file
|
|
|
|
{% endif %}
|
|
{% if library %}
|
|
ANSIBLE_LIBRARY -- Override the default ansible module library path
|
|
|
|
{% endif %}
|
|
ANSIBLE_CONFIG -- Override the default ansible config file
|
|
|
|
Many more are available for most options in ansible.cfg
|
|
|
|
|
|
FILES
|
|
-----
|
|
|
|
{% if inventory %}
|
|
/etc/ansible/hosts -- Default inventory file
|
|
|
|
{% endif %}
|
|
/etc/ansible/ansible.cfg -- Config file, used if present
|
|
|
|
~/.ansible.cfg -- User config file, overrides the default config if present
|
|
|
|
|
|
AUTHOR
|
|
------
|
|
|
|
Ansible was originally written by Michael DeHaan.
|
|
|
|
|
|
COPYRIGHT
|
|
---------
|
|
|
|
Copyright © 2017 Red Hat, Inc | Ansible.
|
|
Ansible is released under the terms of the GPLv3 License.
|
|
|
|
|
|
SEE ALSO
|
|
--------
|
|
|
|
{% for other in cli_list|sort %}{% if other != cli %}*ansible{% if other != 'adhoc' %}-{{other}}{% endif %}*(1){% if not loop.last %}, {% endif %}{% endif %}{% endfor %}
|
|
|
|
Extensive documentation is available in the documentation site:
|
|
<http://docs.ansible.com>.
|
|
IRC and mailing list info can be found in file CONTRIBUTING.md,
|
|
available in: <https://github.com/ansible/ansible>
|