Skip to main content

Introducing new learning courses and educational videos from Apress. Start watching

Book cover

Ansible pp 19–30Cite as

Apress

The Inventory File

  • 2253 Accesses

Abstract

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.

Keywords

  • 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.

This is a preview of subscription content, access via your institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • DOI: 10.1007/978-1-4842-1659-0_2
  • Chapter length: 12 pages
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
eBook
USD   39.99
Price excludes VAT (USA)
  • ISBN: 978-1-4842-1659-0
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD   49.99
Price excludes VAT (USA)

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and Permissions

Copyright information

© 2016 Michael Heap

About this chapter

Cite this chapter

Heap, M. (2016). The Inventory File. In: Ansible. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1659-0_2

Download citation