<commit_before>.. _inventory:

Inventory
=========

.. contents:: Topics

Ansible works against multiple systems in your infrastructure at the
same time.  It does this by selecting portions of systems listed in
Ansible's inventory file, which defaults to being saved in
the location ``/etc/ansible/hosts``.

Not only is this inventory configurable, but you can also use
multiple inventory files at the same time (explained below) and also
pull inventory from dynamic or cloud sources, as described in :doc:`intro_dynamic_inventory`.

.. _inventoryformat:

Hosts and Groups<commit_msg>Mention how to load a specific inventory file (#17348)<commit_after>.. _inventory:

Inventory
=========

.. contents:: Topics

Ansible works against multiple systems in your infrastructure at the
same time.  It does this by selecting portions of systems listed in
Ansible's inventory file, which defaults to being saved in
the location ``/etc/ansible/hosts``. You can specify a different inventory file using the
``-i <path>`` option on the command line.

Not only is this inventory configurable, but you can also use
multiple inventory files at the same time (explained below) and also
pull inventory from dynamic or cloud sources, as described in :doc:`intro_dynamic_inventory`.

.. _inventoryformat:

Hosts and Groups
{'fraction_non_alphanumeric': 0.07285276073619631, 'fraction_numerical': 0.003834355828220859, 'mean_word_length': 4.904977375565611, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3806644', 'n_tokens_mistral': 346, 'n_tokens_neox': 326, 'n_words': 175}