Chapter 3: Using Ansible for Configuring IaaS Infrastructure
In the previous chapter, we talked about provisioning an Azure cloud infrastructure with Terraform. If this infrastructure contains virtual machines (VMs), once they've been provisioned, it is necessary to configure their systems and install all the necessary middleware. This configuration will be necessary for the proper functionality of the applications that will be hosted on the VM.
There are several Infrastructure as Code (IaC) tools available for configuring VMs and the most well-known are Ansible, Puppet, Chef, SaltStack, and PowerShell DSC. Among them, Ansible from Red Hat (https://www.ansible.com/overview/it-automation) stands out for its many assets, as follows:
- It is declarative and uses the easy-to-read YAML language.
- Ansible only works with one executable.
- It does not require agents to be installed on the VMs to be configured.
- A simple SSL/WinRM connection is required for Ansible to...