Modern Infrastructure Automation: Building Production-Ready Pipelines with Bash, Ansible and Python
暫譯: 現代基礎架構自動化:使用 Bash、Ansible 與 Python 建置可用於正式環境的管線

Asiago Ondara, Neville

  • 出版商: Apress
  • 出版日期: 2026-09-30
  • 售價: $2,140
  • 貴賓價: 9.5 折 $2,033
  • 語言: 英文
  • 頁數: 151
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 9798868829703
  • ISBN-13: 9798868829703
  • 相關分類: Ansible、DevOps、Linux
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Infrastructure automation is rarely clean or uniform. In real production environments, teams inherit legacy Bash scripts, introduce Python to manage APIs and complex logic, and eventually adopt configuration management tools like Ansible to enforce consistency. While each of these tools is powerful on its own, combining them without a clear strategy often leads to fragile automation, duplicated logic, and systems that are difficult to debug or maintain. This book addresses this reality head-on. Instead of teaching Bash, Python, and Ansible in isolation, this book presents a hybrid, scenario-driven approach to automation design. It focuses on decision-making, when to use each tool, how to integrate them cleanly, and how to evolve automation as systems grow in complexity.

Modern Infrastructure Automation introduces the concept of automation "playbooks" practical, reusable patterns for solving real operational problems such as deployments, health checks, incident response, and recovery workflows. Each playbook demonstrates how Bash can serve as a fast, ubiquitous glue logic; how Python can handle structured data, APIs, and complex control flow; and how Ansible can enforce desired state and convergence across systems.

Rather than present best-case scenarios, the examples reflect messy, real-world conditions: partial failures, legacy scripts and operational constraints. Readers will learn how to recognize when a Bash script has reached its limits, how to refactor logic into Python without rewriting everything, and how to introduce Ansible without over-engineering simple tasks. By the end of the book, you will be able to design automation systems that are modular, understandable, and production-ready; automation that survives real operational pressure rather than collapsing under it.

You Will Learn:

  • How to choose the right automation tool (Bash, Python, or Ansible) based on task complexity and lifecycle
  • How to design hybrid automation workflows that integrate multiple tools cleanly
  • When and how to refactor fragile scripts into maintainable, modular systems
  • Practical patterns for deployment, monitoring, and incident-response automation
  • How to build automation that remains understandable and maintainable by teams over time

This Book is For:

This book is written for system administrators, DevOps engineers, site reliability engineers (SREs), and infrastructure-focused software engineers who work with Linux-based systems.

Readers should have familiarity with Linux command-line usage and at least introductory exposure to scripting or automation tools.

商品描述(中文翻譯)

基礎架構自動化很少是乾淨或一致的。在實際的正式環境中,團隊往往會接手既有的 Bash 指令碼,導入 Python 來管理 API 與複雜邏輯,最後採用 Ansible 等設定管理工具來強制維持一致性。雖然這些工具各自都十分強大,但若沒有明確策略便將它們結合使用,往往會導致脆弱的自動化流程、重複的邏輯,以及難以除錯或維護的系統。本書正面處理這項現實問題。不同於將 Bash、Python 與 Ansible 分開教授,本書採用混合式、情境導向的自動化設計方法,著重於決策:何時使用各項工具、如何將它們乾淨地整合,以及如何隨著系統複雜度提升而演進自動化流程。

《Modern Infrastructure Automation》介紹自動化「作業手冊」(playbooks)的概念,也就是用來解決實際營運問題的實用、可重複使用模式,例如部署、健康檢查、事件回應與復原工作流程。每個作業手冊都會示範 Bash 如何作為快速且普遍可用的黏著邏輯;Python 如何處理結構化資料、API 與複雜的控制流程;以及 Ansible 如何在各個系統中強制實現期望狀態並促成狀態收斂。

本書不會只呈現理想情境,範例反映的是混亂的真實世界條件:部分失敗、既有指令碼,以及營運限制。讀者將學會如何辨識 Bash 指令碼何時已達到極限、如何在不全面重寫的情況下將邏輯重構至 Python,以及如何導入 Ansible 而不對簡單工作過度工程化。讀完本書後,您將能夠設計出模組化、易於理解且已準備好投入正式環境的自動化系統;這些自動化流程能承受真實的營運壓力,而不會在壓力下崩潰。

您將學會:

• 如何根據工作的複雜度與生命週期,選擇適合的自動化工具(Bash、Python 或 Ansible)
• 如何設計能乾淨整合多項工具的混合式自動化工作流程
• 何時以及如何將脆弱的指令碼重構為易於維護的模組化系統
• 部署、監控與事件回應自動化的實用模式
• 如何建構能讓團隊長期保持易於理解與維護的自動化流程

本書適合:

本書適合使用 Linux 系統的系統管理員、DevOps 工程師、網站可靠性工程師(SRE),以及專注於基礎架構的軟體工程師。

讀者應熟悉 Linux 命令列操作,並至少接觸過指令碼撰寫或自動化工具的入門知識。

作者簡介

Neville Asiago Ondara is a veteran DevOps practitioner with over a decade of experience managing production environments across cloud, on-premises, and hybrid infrastructures. He began his career as a Linux system administrator and gradually transitioned into DevOps, specializing in production-grade automation that balances speed, reliability and long-term maintainability.

Neville is the author of Beginning Linux SysAdmin (Apress) and a frequent contributor to technical publications including LinuxBuzz, Linux Handbook, Tutorialspoint, It's FOSS, and Linux Magazine. His writing focuses on practical, experience-driven guidance that helps engineers bridge the gap between theoretical knowledge and the realities of operating systems at scale. Throughout his career, Neville has worked extensively with Bash, Python, and Ansible in high-stakes production environments.

作者簡介(中文翻譯)

Neville Asiago Ondara 是一位資深 DevOps 實務專家,擁有超過十年的經驗,負責管理雲端、地端與混合式基礎架構中的正式環境。他的職涯起點是 Linux 系統管理員,之後逐步轉型投入 DevOps,專精於正式環境等級的自動化,在速度、可靠性與長期可維護性之間取得平衡。

Neville 是《Beginning Linux SysAdmin》(Apress)的作者,也經常為 LinuxBuzz、Linux Handbook、Tutorialspoint、It's FOSS 與 Linux Magazine 等技術出版物撰稿。他的文章著重於以實務經驗為基礎的指引,協助工程師縮小理論知識與大規模操作系統實務之間的落差。在整個職涯期間,Neville 廣泛運用 Bash、Python 與 Ansible,處理高風險的正式環境。