2017-03-23 06:11:40 +01:00
{% set name = ('ansible' if cli == 'adhoc' else 'ansible-%s' % cli) -%}
2018-03-27 01:28:28 +02:00
{{name}}
{{ '=' * ( name|length|int ) }}
{{ '-' * ( short_desc|default('')|string|length|int ) }}
{{short_desc|default('')}}
{{ '-' * ( short_desc|default('')|string|length|int ) }}
:Version: Ansible %VERSION%
:Manual section: 1
:Manual group: System administration commands
2017-03-22 21:38:49 +01:00
SYNOPSIS
--------
2017-03-23 06:11:40 +01:00
{{ usage|replace('%prog', name) }}
2017-03-22 21:38:49 +01:00
DESCRIPTION
-----------
2017-09-07 21:44:20 +02:00
{{ long_desc|default('', True)|wordwrap }}
2017-03-22 21:38:49 +01:00
2017-09-07 21:44:20 +02:00
{% if options %}
COMMON OPTIONS
--------------
{% for option in options|sort(attribute='options') %}
2018-03-27 01:28:28 +02:00
{% for switch in option['options'] %}**{{switch}}**{% if option['arg'] %} '{{option['arg']}}'{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}
2017-09-07 21:44:20 +02:00
2018-03-27 01:28:28 +02:00
{{ option['desc'] }}
2017-09-07 21:44:20 +02:00
{% endfor %}
{% endif %}
2017-03-22 21:38:49 +01:00
{% if arguments %}
ARGUMENTS
---------
{% for arg in arguments %}
2017-03-23 06:11:40 +01:00
{{ arg }}
2017-03-22 21:38:49 +01:00
2017-03-23 06:11:40 +01:00
{{ (arguments[arg]|default(' '))|wordwrap }}
2017-03-22 21:38:49 +01:00
{% endfor %}
{% endif %}
2017-03-23 06:11:40 +01:00
{% if actions %}
ACTIONS
-------
{% for action in actions %}
2018-03-27 01:28:28 +02:00
**{{ action }}**
{{ (actions[action]['desc']|default(' '))}}
2017-03-23 06:11:40 +01:00
2017-09-07 21:44:20 +02:00
{% if actions[action]['options'] %}
2017-12-07 15:16:04 +01:00
{% for option in actions[action]['options']|sort(attribute='options') %}
2018-04-03 17:56:12 +02:00
{% 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 %}
2017-03-23 06:11:40 +01:00
2017-09-07 21:44:20 +02:00
{{ (option['desc']) }}
2017-03-23 06:11:40 +01:00
{% endfor %}
{% endif %}
2017-03-22 21:38:49 +01:00
{% endfor %}
2017-09-07 21:44:20 +02:00
{% endif %}
2017-03-22 21:38:49 +01:00
2017-03-23 06:11:40 +01:00
{% if inventory %}
2017-03-22 21:38:49 +01:00
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.
2018-04-22 09:15:16 +02:00
For additional options, see the documentation on https://docs.ansible.com/.
2017-03-22 21:38:49 +01:00
{% endif %}
ENVIRONMENT
-----------
The following environment variables may be specified.
2017-03-23 06:11:40 +01:00
{% if inventory %}
2018-06-30 01:46:10 +02:00
ANSIBLE_INVENTORY -- Override the default ansible inventory sources
2017-03-22 21:38:49 +01:00
{% endif %}
2017-03-23 06:11:40 +01:00
{% if library %}
2017-03-22 21:38:49 +01:00
ANSIBLE_LIBRARY -- Override the default ansible module library path
{% endif %}
2018-06-30 01:46:10 +02:00
ANSIBLE_CONFIG -- Specify override location for the ansible config file
2017-03-22 21:38:49 +01:00
Many more are available for most options in ansible.cfg
2018-06-30 01:46:10 +02:00
For a full list check https://docs.ansible.com/. or use the `ansible-config` command.
2017-03-22 21:38:49 +01:00
FILES
-----
2017-03-23 06:11:40 +01:00
{% if inventory %}
2017-03-22 21:38:49 +01:00
/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
2018-06-30 01:46:10 +02:00
./ansible.cfg -- Local config file (in current working direcotry) assumed to be 'project specific' and overrides the rest if present.
As mentioned above, the ANSIBLE_CONFIG environment variable will override all others.
2017-03-22 21:38:49 +01:00
AUTHOR
------
Ansible was originally written by Michael DeHaan.
COPYRIGHT
---------
2018-06-30 01:46:10 +02:00
Copyright © 2018 Red Hat, Inc | Ansible.
Ansible is released under the terms of the GPLv3 license.
2017-03-22 21:38:49 +01:00
SEE ALSO
--------
2018-03-27 01:28:28 +02:00
{% for other in cli_list|sort %}{% if other != cli %}**ansible{% if other != 'adhoc' %}-{{other}}{% endif %}** (1){% if not loop.last %}, {% endif %}{% endif %}{% endfor %}
2017-03-22 21:38:49 +01:00
Extensive documentation is available in the documentation site:
2018-04-22 09:15:16 +02:00
<https://docs.ansible.com>.
2017-03-23 06:11:40 +01:00
IRC and mailing list info can be found in file CONTRIBUTING.md,
available in: <https://github.com/ansible/ansible>