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
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

Adding a keypair

A keypair is used to log into a virtual machine through SSH created by OpenStack. Once we have a key, or several of them, then we can choose a public key while creating a virtual machine, and this key will be added to the default user of the operating system.

How to do it...

  1. For this, we need to have a key added to OpenStack before we boot the virtual machine. The name of the key has to be unique. This is what we will specify while booting an instance. So let's add our public key as follows:
- name: adding public key
os_keypair:
name: aditya
public_key: {{ aditya_pub_key }}
  1. We have used the variable for improving the readability of the code. It also helps if we need to change the keys quickly...
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