<p>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.</p>
<divclass="section"id="inventory-file-format">
<spanid="inventoryformat"></span><h2>Inventory File Format<aclass="headerlink"href="#inventory-file-format"title="Permalink to this headline">¶</a></h2>
<spanid="inventoryformat"></span><h2>Baisc Inventory File Format<aclass="headerlink"href="#baisc-inventory-file-format"title="Permalink to this headline">¶</a></h2>
<p>The format for /etc/ansible/hosts looks like this:</p>
<pclass="last">It is not possible to target a host not in the inventory file. This is a safety feature.</p>
</div>
<p>Easy enough. Now see <aclass="reference internal"href="examples.html"><em>Command Line Examples</em></a> and then <aclass="reference internal"href="playbooks.html"><em>Playbooks</em></a> for how to do things to selected hosts.</p>
<p>Easy enough. See <aclass="reference internal"href="examples.html"><em>Command Line Examples</em></a> and then <aclass="reference internal"href="playbooks.html"><em>Playbooks</em></a> for how to do things to selected hosts.</p>