Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Ansible 2 Cloud Automation Cookbook
  • Table Of Contents Toc
  • Feedback & Rating feedback
Ansible 2 Cloud Automation Cookbook

Ansible 2 Cloud Automation Cookbook

By : Patawari, Aggarwal
2.5 (2)
close
close
Ansible 2 Cloud Automation Cookbook

Ansible 2 Cloud Automation Cookbook

2.5 (2)
By: Patawari, 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)
close
close

Deploying a sample application

Let's deploy our phonebook application. Since DigitalOcean does not offer a managed database service, we will deploy the SQLite variant of our application. Since we are going to use dynamic inventory, we will create the playbook as follows:

---
- hosts: app
roles:
- phonebook

How to do it...

To execute the playbook, along with dynamic inventory, we should execute the following command:

$ ansible-playbook -i digital_ocean.py --become phonebook.yml

This command installs the phonebook on our droplet. We can leverage the load balancer and provide the IP address of the load balancer instead of the droplet. Keep in mind that we are using SQLite here, not MySQL; SQLite is not accessible over...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Ansible 2 Cloud Automation Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon