Ansible is a great tool for handling deployment as well as configuration management, providing a lot more functionality than shell scripts. It doesn't require that one learn a new set of abstractions to hide the differences between operating systems. That makes its surface area smaller; there's less you need to know before you get started.
Why is it important?
We're all slowly turning into system engineers. Using a single tool for both configuration management and deployment makes life simpler for the folks responsible for operations. Project goals include a consistent, secure, highly reliable tool that's minimal in nature and has a low learning curve.
What you'll learn—and how you can apply it
Covers the basic concepts of Ansible at a high level, including how it communicates with remote servers and how it differs from other configuration-management tools. You'll learn how to use the Ansible command-line tool to perform simple tasks on a single host
This lesson is for you because…
- You're a developer deploying your code to production
- You're a systems administrator looking for a better way to automate
- You need a quick introduction to leveraging an idempotent resource model for immutable infrastructure
- Be familiar with at least one Linux distribution (e.g., Ubuntu, RHEL/CentOS, SUSE)
- Be familiar with basic Linux system administration tasks, e.g., know how to:
- Connect to a remote machine using SSH
- Interact with the bash command-line shell (pipes and redirection)
- Install packages
- Use the sudo command
- Check and set file permissions
- Start and stop services
- Set environment variables
- Write scripts (any language)
- Learn some YAML and Jinja2
Materials or downloads needed in advance
- Have a Linux server with which to practice
This Lesson is taken from Ansible: Up and Running by Lorin Hochstein.
Table of contents
Get started with Ansible
- A Note About Versions
- Ansible: What Is It Good For?
- How Ansible Works
- What’s So Great About Ansible?
- Is Ansible Too Simple?
- What Do I Need to Know?
- What Isn’t Covered
- Installing Ansible
- Setting Up a Server for Testing
- Title: Get started with Ansible
- Release date: August 2016
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491965504
You might also like
Modern Python Cookbook - Second Edition
Complete recipes spread across 15 chapters to help you overcome commonly faced issues by Python for …
Hands-On Security in DevOps
Protect your organization's security at all levels by introducing the latest strategies for securing DevOps Key …
DevOps for the Desperate
If you’re a software engineer, developer, or sys admin who needs to get up to speed …
Kubernetes in Action
Kubernetes in Action teaches you to use Kubernetes to deploy container-based distributed applications. You'll start with …