Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docs re inventory_ignore_extensions config #21132

Merged
merged 1 commit into from
Feb 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/docsite/rst/intro_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,19 @@ to talk to::

It used to be called hostfile in Ansible before 1.9

.. _inventory_ignore_extensions:

inventory_ignore_extensions
===========================

Coma-separated list of file extension patterns to ignore when Ansible inventory
is a directory with multiple sources (static and dynamic)::

inventory_ignore_extensions = ~, .orig, .bak, .ini, .cfg, .retry, .pyc, .pyo

This option can be overridden by setting ``ANSIBLE_INVENTORY_IGNORE``
environment variable.

.. _jinja2_extensions:

jinja2_extensions
Expand Down
2 changes: 1 addition & 1 deletion docs/docsite/rst/intro_dynamic_inventory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ hybrid cloud!

In an inventory directory, executable files will be treated as dynamic inventory sources and most other files as static sources. Files which end with any of the following will be ignored::

~, .orig, .bak, .ini, .retry, .pyc, .pyo
~, .orig, .bak, .ini, .cfg, .retry, .pyc, .pyo

You can replace this list with your own selection by configuring an ``inventory_ignore_extensions`` list in ansible.cfg, or setting the ANSIBLE_INVENTORY_IGNORE environment variable. The value in either case should be a comma-separated list of patterns, as shown above.

Expand Down
4 changes: 4 additions & 0 deletions examples/ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@
# Controls showing custom stats at the end, off by default
#show_custom_stats = True

# Controlls which files to ignore when using a directory as inventory with
# possibly multiple sources (both static and dynamic)
#inventory_ignore_extensions = ~, .orig, .bak, .ini, .cfg, .retry, .pyc, .pyo

[privilege_escalation]
#become=True
#become_method=sudo
Expand Down