This book is designed to introduce you to using Ansible to manage your servers. You'll learn how to install and configure Ansible on a control node, and then how to use it to configure and run commands on remote servers. You'll also learn how to collect tasks into complete Playbooks to automate server setup from start to finish.
The topics that it covers include how to:
- Become familiar with configuration management tools and processes, and the benefits of using them to manage your infrastructure.
- Install and configure Ansible on an Ubuntu 20.04 control node, ensuring that your servers are properly set up and that you are able to execute remote instructions through Ansible.
- Build inventory files and organize your servers into groups to selectively control how and where Ansible commands are run.
- Run Ad Hoc commands to execute individual tasks on one, or multiple remote servers.
- Package individual commands into Playbooks that you can use to automate the provisioning of multiple servers, and how to run specific sets of tasks in Playbooks using tags.
Each chapter is usable on its own as a reference, or as part of a progressive guide to learning how to manage your servers with Ansible. If you're familiar with a topic, or are more interested in a particular section, feel free to jump to the chapter that best suits your purpose.
This open book is licensed under a Creative Commons License (CC BY-NC-SA). You can download How To Manage Remote Servers with Ansible ebook for free in PDF format (1.4 MB).
Table of Contents
An Introduction to Configuration Management with Ansible
How To Install and Configure Ansible on Ubuntu 20.04
How To Set Up Ansible Inventories
How To Manage Multiple Servers with Ansible Ad Hoc Commands
How To Execute Ansible Playbooks to Automate Server Setup