## Static Inventory Example

Ansible Terminal

    # Static inventory example:
    [myservers]
    10.42.0.2
    10.42.0.6
    10.42.0.7
    10.42.0.8
    10.42.0.100
    host.example.com

Static inventory is the easiest source to get started with. This example shows a static inventory source in It’s simplest form – a single file with a list of IP addresses or hostnames.

NOTE: Ansible infers a localhost is present even if it is not explicitly listed. This is why you can actually run Ansible without a inventory source. Ansible will only be able to operate on the localhost where it is being run.