How To Manage Remote Servers with Ansible



Book Details
Author | Erika Heidi |
Publisher | DigitalOcean |
Published | 2021 |
Edition | 1st |
Paperback | 72 pages |
Language | English |
ISBN-13 | 9781735831732 |
ISBN-10 | 1735831735 |
License | Creative Commons Attribution-NonCommercial-ShareAlike |
Book Description
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 book is available under a Creative Commons Attribution-NonCommercial-ShareAlike license (CC BY-NC-SA), which means that you are free to copy, distribute, and modify it, as long as you credit the original author, don't use it for commercial purposes, and share any adaptations under the same license.
If you enjoyed the book and would like to support the author, you can purchase a printed copy (hardcover or paperback) from official retailers.