Chapter 11: Ansible and Scripting for Orchestration and Automation
Ansible has become the de facto standard in today's open source community because it offers so much while asking so little of you and your infrastructure. Using Ansible with Kernel-based Virtual Machine (KVM) also makes a lot of sense, especially when you think about larger environments. It doesn't really matter if it's just a simple provisioning of KVM hosts that you want to do (install libvirt and related software), or if you want to uniformly configure KVM networking on hosts – Ansible can be invaluable for both. For example, in this chapter, we will use Ansible to deploy a virtual machine and multi-tier application that's hosted inside KVM virtual machines, which is a very common use case in larger environments. Then, we'll move to more pedantic subjects of combining Ansible and cloud-init since they differ in terms of timeline when they're applied and a way in which things get...