Book Image

Learning Ansible

By : Madhurranjan Mohaan, Ramesh Raithatha
Book Image

Learning Ansible

By: Madhurranjan Mohaan, Ramesh Raithatha

Overview of this book

<p>Automation includes provisioning new servers, making sure the servers adhere to their role and maintain the desired state from a configuration perspective, and orchestrating various actions across environments and deploying code as expected to all these servers. This is where Ansible steps in. It is secure, highly reliable, and minimalistic in nature. It automates configuration management, application deployment, and many other IT needs.</p> <p>Learning Ansible will equip you with the necessary skills to automate/improve your infrastructure from a configuration management perspective. You will also be able to use Ansible for one-click deployments, provisioning, and orchestrating your infrastructure.</p>
Table of Contents (16 chapters)
Learning Ansible
Credits
About the Authors
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 1. Getting Started with Ansible

 

We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths.

 
 -- Walt Disney

If exploring new paths is what you like, then in this chapter, we're going to lead you down an exciting path with Ansible. Almost always, when one starts to invest time trying to learn a new tool or language, the expectation is to install a new tool, get a "Hello, world!" example out of the way, tweet about it (these days), and continue learning more features in the general direction of solving the problem at hand. The aim of this chapter is to make sure all of this (and more) is achieved.

In this chapter, we will cover the following topics:

  • What is Ansible?

  • The Ansible architecture

  • Configuring Ansible

  • Configuration management

  • Working with playbooks

  • Variables and their types

  • Working with inventory files

  • Working with modules

At the end of this chapter, you will be able to create basic playbooks and understand how to use Ansible.