Book Image

Hands-On Enterprise Automation on Linux

By : James Freeman
Book Image

Hands-On Enterprise Automation on Linux

By: James Freeman

Overview of this book

Automation is paramount if you want to run Linux in your enterprise effectively. It helps you minimize costs by reducing manual operations, ensuring compliance across data centers, and accelerating deployments for your cloud infrastructures. Complete with detailed explanations, practical examples, and self-assessment questions, this book will teach you how to manage your Linux estate and leverage Ansible to achieve effective levels of automation. You'll learn important concepts on standard operating environments that lend themselves to automation, and then build on this knowledge by applying Ansible to achieve standardization throughout your Linux environments. By the end of this Linux automation book, you'll be able to build, deploy, and manage an entire estate of Linux servers with higher reliability and lower overheads than ever before.
Table of Contents (23 chapters)
1
Section 1: Core Concepts
5
Section 2: Standardizing Your Linux Servers
10
Section 3: Day-to-Day Management
16
Section 4: Securing Your Linux Servers

Chapter 2 - Automating Your IT Infrastructure with Ansible

  1. Ansible is an open source automation platform used for running tasks across an inventory of servers. It differs from a simple shell script in that it will (when using native modules) only attempt to make changes when they are required (hence resulting in a consistent state), and it offers native support for remote connections to other machines (using SSH on Linux) and encryption of sensitive data and makes use of highly readable, self-documenting code.
  2. An Ansible inventory is simply a list of servers against which an Ansible playbook is to be run.
  3. Ansible has built-in features to make it easy to reuse roles—hence, a single role might find application in several playbooks. Conversely, if the code is written in a single large playbook, the only way to reuse the code in a different playbook is to copy and paste, which...