Summary

A summary of the content covered in the chapter.

This chapter introduced dynamic inventories, inventory plugins, and how you can use them to configure your own dynamic inventory of hosts deployed on Azure and AWS.

Dynamic inventory

We started with introducing dynamic inventory and the need for it. Infrastructure is rarely static, and as it grows, you need mechanisms to manage it efficiently.

A dynamic inventory uses an external source to generate the Ansible inventory.

Create a dynamic inventory - AWS

Next, we looked into how you can create an inventory of the hosts deployed on AWS. You made use of the aws_ec2 plugin.

The aws_ec2 plugin queries the EC2 instances, their details and constructs an ...