Book Image

Ansible 2 Cloud Automation Cookbook

By : Aditya Patawari, Vikas Aggarwal
Book Image

Ansible 2 Cloud Automation Cookbook

By: Aditya Patawari, Vikas Aggarwal

Overview of this book

Ansible has a large collection of inbuilt modules to manage various cloud resources. The book begins with the concepts needed to safeguard your credentials and explain how you interact with cloud providers to manage resources. Each chapter begins with an introduction and prerequisites to use the right modules to manage a given cloud provider. Learn about Amazon Web Services, Google Cloud, Microsoft Azure, and other providers. Each chapter shows you how to create basic computing resources, which you can then use to deploy an application. Finally, you will be able to deploy a sample application to demonstrate various usage patterns and utilities of resources.
Table of Contents (11 chapters)

What this book covers

Chapter 1, Getting Started with Ansible and Cloud Management, introduces us to some basic Ansible concepts such as secret management using Ansible Vault and the phonebook application, working with cloud providers and how to execute playbooks locally.

Chapter 2, Using Ansible to Manage AWS EC2, starts with an introduction to AWS EC2. Here, we build basic infrastructure such as network and security groups, which are eventually used to start a compute instance.

Chapter 3, Managing Amazon Web Services with Ansible, takes us deeper into AWS, beyond EC2. Here, we would build and manage AWS components such as RDS. We will also deploy the phonebook application, which will demonstrate the usage of various components of AWS and Ansible modules.

Chapter 4, Exploring Google Cloud Platform with Ansible, walks us through the Google Cloud Platform, where we will build network, firewalls, and compute instances. We will look at object storage, instance templates, and any dynamic inventory. Finally, we will deploy our phonebook application to see it in action.

Chapter 5, Building Infrastructure with Microsoft Azure and Ansible, helps us learn more about various components of Microsoft Azure. We will start with network components and work our way to create virtual machines. We will use dynamic inventory and deploy our phonebook application.

Chapter 6, Working with DigitalOcean and Ansible, introduces us to DigitalOcean. We will create droplets, block storage, and manage load balancers. We will try out dynamic inventory and deploy the phonebook application on a droplet.

Chapter 7, Running Containers with Docker and Ansible, helps us learn about Docker containers. We will build images and run containers. We will also look at running our own registry to store images. Finally, we will check out Docker Compose and deploy our phonebook application.

Chapter 8, Diving into OpenStack with Ansible, shows how to use Ansible to manage various resources in OpenStack, such as compute instances, blob storage, and network management. We will use dynamic inventory and deploy the phonebook application on a Nova Compute Instance.

Chapter 9, Ansible Tower, in this chapter, Tower provides a web-based user interface that executes Ansible's codebase. On top of that, it comes with many features including access control, security, better logging, and workflows.