Chapter 4

Ansible Basics

You learned a little about Ansible in Chapter 1, “Types of Network Automation,” and saw some examples of using it in Chapter 3, “Using Data from Your Network.” Ansible is the number-one tool used in enterprise networking automation. You can use it for most of the use cases covered so far, including configuration, provisioning, monitoring, compliance, interaction, testing, and reporting.

This chapter covers the following facets of Ansible:

  • Main characteristics

  • Installation

  • Concepts such as variables, loops, and conditionals

  • Inventory

  • Playbooks

  • Roles

After you have finished this chapter, you should be able to understand, build, and execute your own playbooks.

Ansible Characteristics

Ansible is agentless and uses SSH ...

Get Network Automation Made Easy now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.