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 12 - Performing Routine Maintenance with Ansible

  1. The df command can be provided with a path and it will work out the mount point on which that path lives and give you the free disk space. Ansible Facts provide disk usage statistics, but only by mount point, and so you must figure out which mount point your path lives on.
  2. The find module is used to locate files.
  3. Changes to configuration files might get made accidentally, maliciously, or as a result of an emergency change to fix an issue. In all cases, it is important to identify the changes and ensure that they are either removed or the playbooks updated to reflect the new configuration (especially when they were made to resolve an issue).
  4. You could use the template module or copy module to copy over the file and run Ansible in check mode. You could also checksum the file and see whether that matches a known value.
  5. Use...