Ansible Playbook Essentials (Paperback)

Gourav Shah

  • 出版商: Packt Publishing
  • 出版日期: 2015-07-30
  • 售價: $1,340
  • 貴賓價: 9.5$1,273
  • 語言: 英文
  • 頁數: 168
  • 裝訂: Paperback
  • ISBN: 1784398292
  • ISBN-13: 9781784398293
  • 相關分類: Ansible
  • 下單後立即進貨 (約3~4週)

買這商品的人也買了...

商品描述

Design automation blueprints using Ansible's playbooks to orchestrate and manage your multitier infrastructure

About This Book

  • Get to grips with Ansible's features such as orchestration, automatic node discovery, and data encryption
  • Create data-driven, modular and reusable automation code with Ansible roles, facts, variables, and templates
  • A step-by-step approach to automating and managing system and application configurations effectively using Ansible's playbooks

Who This Book Is For

If you are a systems or automation engineer who intends to automate common infrastructure tasks, deploy applications, and use orchestration to configure systems in a coordinated manner, then this book is for you. Some understanding of the Linux/Unix command-line interface is expected.

What You Will Learn

  • Write simple tasks and plays
  • Organize code into a reusable, modular structure
  • Separate code from data using variables and Jinja2 templates
  • Run custom commands and scripts using Ansible's command modules
  • Control execution flow based on conditionals
  • Integrate nodes and discover topology information about other nodes in the cluster
  • Encrypt data with Ansible-vault
  • Create environments with isolated configurations to match the application development workflow
  • Orchestrate infrastructure and deploy applications in a coordinated manner

In Detail

This book will show you how to write a blueprint of your infrastructure, encompassing multitier applications using Ansible's playbooks. Beginning with basic concepts such as plays, tasks, handlers, inventory, and the YAML syntax that Ansible uses, you will see how to organize your code into a modular structure. Building on this, you will master techniques to create data-driven playbooks with variables, templates, logical constructs, and encrypted data. This book will also take you through advanced clustering concepts, such as discovering topology information about other nodes in the cluster, managing multiple environments with isolated configurations, and orchestrate infrastructure and deploy applications in a coordinated manner.

By the end of this book, you will be able to design solutions to your automation and orchestration problems using playbooks quickly and efficiently.

商品描述(中文翻譯)

使用Ansible的playbooks設計自動化藍圖,以協調和管理多層基礎架構。

關於本書

- 瞭解Ansible的功能,如協調、自動節點發現和數據加密。
- 使用Ansible的角色、事實、變量和模板創建數據驅動、模塊化和可重用的自動化代碼。
- 逐步介紹使用Ansible的playbooks自動化和管理系統和應用配置的方法。

本書適合對自動化基礎架構任務、應用部署和使用協調配置系統有興趣的系統或自動化工程師。需要對Linux/Unix命令行界面有一定的了解。

你將學到什麼

- 編寫簡單的任務和play
- 將代碼組織成可重用、模塊化的結構
- 使用變量和Jinja2模板將代碼與數據分離
- 使用Ansible的命令模塊運行自定義命令和腳本
- 根據條件控制執行流程
- 集成節點並發現集群中其他節點的拓撲信息
- 使用Ansible-vault加密數據
- 創建具有隔離配置的環境,以匹配應用程序開發工作流程
- 協調基礎架構並以協調的方式部署應用程序

詳細內容

本書將向您展示如何使用Ansible的playbooks編寫基礎架構的藍圖,包括多層應用程序。從plays、tasks、handlers、inventory和Ansible使用的YAML語法等基本概念開始,您將學習如何將代碼組織成模塊化結構。在此基礎上,您將掌握使用變量、模板、邏輯結構和加密數據創建數據驅動的playbooks的技巧。本書還將介紹高級集群概念,例如發現集群中其他節點的拓撲信息、使用隔離配置管理多個環境,以及以協調的方式協調基礎架構和部署應用程序。

通過閱讀本書,您將能夠快速高效地使用playbooks設計解決自動化和協調問題的解決方案。