mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 15:41:22 -07:00
Spellcheck. Formatting. References.
This commit is contained in:
parent
8bd523fe36
commit
a1010e5405
7 changed files with 187 additions and 123 deletions
|
@ -12,12 +12,16 @@ How to select hosts you wish to manage
|
|||
:doc:`playbooks`
|
||||
Learning ansible's configuration management language
|
||||
|
||||
|
||||
.. _inventoryformat:
|
||||
|
||||
Inventory File Format
|
||||
+++++++++++++++++++++
|
||||
|
||||
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 /etc/ansible/hosts, and looks like this::
|
||||
same time. It does this by selecting portions of systems listed in
|
||||
Ansible's inventory file, which defaults to /etc/ansible/hosts, and
|
||||
looks like this::
|
||||
|
||||
mail.example.com
|
||||
|
||||
|
@ -54,13 +58,12 @@ with the bracket headers in the inventory file::
|
|||
Individual hosts, but not groups, can also be referenced using
|
||||
wildcards::
|
||||
|
||||
*.example.com
|
||||
*.com
|
||||
*.example.com
|
||||
*.com
|
||||
|
||||
It's also ok to mix wildcard patterns and groups at the same time::
|
||||
|
||||
one*.com:dbservers
|
||||
|
||||
NOTE: It is not possible to target a host not in the inventory file.
|
||||
|
||||
one*.com:dbservers
|
||||
|
||||
.. note::
|
||||
It is not possible to target a host not in the inventory file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue