Chapter 12. Amazon EC2
Ansible has a number of features that make working with infrastructure-as-a-service (IaaS) clouds much easier. This chapter focuses on Amazon EC2 because it’s the most popular IaaS cloud and the one I know best. However, many of the concepts should transfer to other clouds supported by Ansible.
The two ways Ansible supports EC2 are:
A dynamic inventory plug-in for automatically populating your Ansible inventory instead of manually specifying your servers
Modules that perform actions on EC2 such as creating new servers
In this chapter, we’ll discuss both the EC2 dynamic inventory plug-in, as well as the EC2 modules.