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)

Deploying the sample application

In this section, we will be deploying a sample phonebook application using AWS Cloud resources, such as RDS for the database instance and EC2 as our compute server where our code will be deployed.

How to do it...

This sample application will be deployed using a playbook, as follows:

--- 
- hosts: localhost 
roles: - phonebook

How it works...

This application will use the same password that we used while creating a DB instance for creating a database and the user for our application. This sample application playbook will create and...