Ansible pp 19-30 | Cite as

The Inventory File

  • Michael Heap


In Chapter 1, you put together a simple playbook and ran it against your Vagrant machine using the vagrant provision command. You can run that same playbook against any machine that also has a running SSH server by using the ansible-playbook command. First, however, you need an inventory file. In this chapter, we’ll take a look at what an inventory file is, how to run ansible-playbook without Vagrant, and how to leverage the inventory file when you have a complex inventory of machines with which you need to interact.


Load Balancer Cloud Server Dynamic Inventory Inventory Inventory Automation User 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Michael Heap 2016

Authors and Affiliations

  • Michael Heap
    • 1
  1. 1.ReadingUK

Personalised recommendations