Ansible 2 Cloud Automation Cookbook

Orchestrate your cloud infrastructure
Preview in Mapt

Ansible 2 Cloud Automation Cookbook

Aditya Patawari, Vikas Aggarwal
New Release!

Orchestrate your cloud infrastructure
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $27.99
Save 64%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$34.99
$29.99 p/m after trial
RRP $27.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Ansible 2 Cloud Automation Cookbook Book Cover
Ansible 2 Cloud Automation Cookbook
$ 27.99
$ 10.00
Security Automation with Ansible 2 Book Cover
Security Automation with Ansible 2
$ 35.99
$ 10.00
Buy 2 for $20.00
Save $43.98
Add to Cart

Book Details

ISBN 139781788295826
Paperback200 pages

Book Description

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

Chapter 1: Getting Started with Ansible and Cloud Management
Introduction
Installing Ansible
Executing the Ansible command line to check connectivity
Working with cloud providers
Executing playbooks locally
Managing secrets with Ansible Vault
Understanding sample application
Using dynamic inventory
Chapter 2: Using Ansible to Manage AWS EC2
Introduction
Preparing Ansible to work with AWS
Creating and managing a VPC
Creating and managing security groups
Creating EC2 instances
Creating and assigning Elastic IPs
Attaching volumes to instances
Creating an Amazon Machine Image
Creating an Elastic Load Balancer and attaching to EC2 instances
Creating auto scaling groups 
Deploying the phonebook application
Chapter 3: Managing Amazon Web Services with Ansible
Introduction
Creating an RDS instance
Creating and deleting records in Route53
Managing S3 objects
Managing Lambda
Managing IAM users
Using dynamic inventory
Deploying the sample application
Chapter 4: Exploring Google Cloud Platform with Ansible
Introduction
Preparing to work with Google Cloud Platform
Creating GCE instances
Attaching persistent disks
Creating snapshots for backup
Tagging an instance
Managing network and firewall rules
Managing load balancer
Managing GCE images
Creating instance templates
Creating managed instance groups
Managing objects in Google Cloud Storage
Creating a Cloud SQL instance (without Ansible module)
Using dynamic inventory
Deploying the phonebook application
Chapter 5: Building Infrastructure with Microsoft Azure and Ansible
Introduction
Preparing Ansible to work with Azure
Creating an Azure virtual machine
Managing network interfaces
Working with public IP addresses
Using public IP addresses with network interfaces and virtual machines
Managing an Azure network security group
Working with Azure Blob storage
Using a dynamic inventory
Deploying a sample application
Chapter 6: Working with DigitalOcean and Ansible
Introduction
Preparing to work with DigitalOcean
Adding SSH keys to a DigitalOcean account
Creating Droplets
Managing Block Storage
Attaching a Floating IP
Using a Load Balancer
Adding an A DNS record
Using dynamic inventory
Deploying a sample application
Chapter 7: Running Containers with Docker and Ansible
Introduction
Preparing Ansible to work with Docker
Running a container 
Downloading Docker images 
Mounting volumes in containers 
Setting up Docker Registry
Logging into Docker Registry 
Using Docker Compose to manage services
Scaling up Compose-based service
Deploying a sample application 
Chapter 8: Diving into OpenStack with Ansible
Introduction
Preparing Ansible to work with OpenStack
Adding a keypair
Managing security groups
Managing network resources
Managing a Nova compute instance
Creating a Cinder volume and attaching it to a Nova compute instance 
Managing objects in Swift
User management
Creating a flavor
Adding an image
Dynamic inventory 
Deploying the phonebook application
Chapter 9: Ansible Tower
Introduction
Installing Ansible Tower
Getting started with Tower
Adding a machine credential
Building a simple inventory
Executing ad-hoc commands
Using Ansible Tower with a cloud provider
Integrating Ansible roles with tower
Scheduling jobs
Ansible Tower API
Autoscaling using Callback

What You Will Learn

  • Use Ansible Vault to protect secrets
  • Understand how Ansible modules interact with cloud providers to manage resources
  • Build cloud-based resources for your application
  • Create resources beyond simple virtual machines
  • Write tasks that can be reused to create resources multiple times
  • Work with self-hosted clouds such as OpenStack and Docker
  • Deploy a multi-tier application on various cloud providers

Authors

Table of Contents

Chapter 1: Getting Started with Ansible and Cloud Management
Introduction
Installing Ansible
Executing the Ansible command line to check connectivity
Working with cloud providers
Executing playbooks locally
Managing secrets with Ansible Vault
Understanding sample application
Using dynamic inventory
Chapter 2: Using Ansible to Manage AWS EC2
Introduction
Preparing Ansible to work with AWS
Creating and managing a VPC
Creating and managing security groups
Creating EC2 instances
Creating and assigning Elastic IPs
Attaching volumes to instances
Creating an Amazon Machine Image
Creating an Elastic Load Balancer and attaching to EC2 instances
Creating auto scaling groups 
Deploying the phonebook application
Chapter 3: Managing Amazon Web Services with Ansible
Introduction
Creating an RDS instance
Creating and deleting records in Route53
Managing S3 objects
Managing Lambda
Managing IAM users
Using dynamic inventory
Deploying the sample application
Chapter 4: Exploring Google Cloud Platform with Ansible
Introduction
Preparing to work with Google Cloud Platform
Creating GCE instances
Attaching persistent disks
Creating snapshots for backup
Tagging an instance
Managing network and firewall rules
Managing load balancer
Managing GCE images
Creating instance templates
Creating managed instance groups
Managing objects in Google Cloud Storage
Creating a Cloud SQL instance (without Ansible module)
Using dynamic inventory
Deploying the phonebook application
Chapter 5: Building Infrastructure with Microsoft Azure and Ansible
Introduction
Preparing Ansible to work with Azure
Creating an Azure virtual machine
Managing network interfaces
Working with public IP addresses
Using public IP addresses with network interfaces and virtual machines
Managing an Azure network security group
Working with Azure Blob storage
Using a dynamic inventory
Deploying a sample application
Chapter 6: Working with DigitalOcean and Ansible
Introduction
Preparing to work with DigitalOcean
Adding SSH keys to a DigitalOcean account
Creating Droplets
Managing Block Storage
Attaching a Floating IP
Using a Load Balancer
Adding an A DNS record
Using dynamic inventory
Deploying a sample application
Chapter 7: Running Containers with Docker and Ansible
Introduction
Preparing Ansible to work with Docker
Running a container 
Downloading Docker images 
Mounting volumes in containers 
Setting up Docker Registry
Logging into Docker Registry 
Using Docker Compose to manage services
Scaling up Compose-based service
Deploying a sample application 
Chapter 8: Diving into OpenStack with Ansible
Introduction
Preparing Ansible to work with OpenStack
Adding a keypair
Managing security groups
Managing network resources
Managing a Nova compute instance
Creating a Cinder volume and attaching it to a Nova compute instance 
Managing objects in Swift
User management
Creating a flavor
Adding an image
Dynamic inventory 
Deploying the phonebook application
Chapter 9: Ansible Tower
Introduction
Installing Ansible Tower
Getting started with Tower
Adding a machine credential
Building a simple inventory
Executing ad-hoc commands
Using Ansible Tower with a cloud provider
Integrating Ansible roles with tower
Scheduling jobs
Ansible Tower API
Autoscaling using Callback

Book Details

ISBN 139781788295826
Paperback200 pages
Read More

Read More Reviews

Recommended for You

Security Automation with Ansible 2 Book Cover
Security Automation with Ansible 2
$ 35.99
$ 10.00
AWS Automation Cookbook Book Cover
AWS Automation Cookbook
$ 31.99
$ 10.00
Kubernetes for Serverless Applications Book Cover
Kubernetes for Serverless Applications
$ 35.99
$ 10.00
Kubernetes Cookbook - Second Edition Book Cover
Kubernetes Cookbook - Second Edition
$ 35.99
$ 10.00
Google Cloud Platform for Developers Book Cover
Google Cloud Platform for Developers
$ 35.99
$ 10.00
Containers in OpenStack Book Cover
Containers in OpenStack
$ 27.99
$ 10.00