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 7 - Configuration Management with Ansible

  1. Commonly, these might be replace and lineinfile.
  2. In brief, a template file is created that contains a mix of plaintext (which will be replicated as is) and valid Jinja2 expressions, which will be parsed and turned into the appropriate text when the template is deployed. These might be simple variable substitutions or more complex constructs such as for loops or if..then..else statements.
  3. Many Linux configurations are now split across multiple files, and it is possible for someone to accidentally (or maliciously) override your configuration in another file that gets included later on.
  1. Regular expressions can easily be broken if not carefully designed—for example, a Linux service might accept a configuration directive if there is whitespace before it; however, if your regular expression does not take account of this, it...