Skip to main content
Apress

Practical Ansible

Configuration Management from Start to Finish

  • Book
  • © 2022
  • Latest edition

Overview

  • Uses real world examples to teach core concepts
  • Can be used both as an Ansible tutorial and as a reference manual
  • Covers more obscure and advanced topics not covered by other books or official documentation
  • 10k Accesses

This is a preview of subscription content, log in via an institution to check access.

Access this book

eBook USD 23.99 USD 34.99
Discount applied Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 23.99 USD 44.99
Discount applied Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

') var buybox = document.querySelector("[data-id=id_"+ timestamp +"]").parentNode var buyboxMaxSingleColumnWidth = 480 ;[].slice.call(buybox.querySelectorAll(".buying-option")).forEach(initCollapsibles) function initCollapsibles(buyingOption, index) { var toggle = buyingOption.querySelector(".buying-option-price") buyingOption.classList.remove("expanded") var form = buyingOption.querySelector(".buying-option-form") var priceInfo = buyingOption.querySelector(".price-info") if (toggle && form && priceInfo) { toggle.setAttribute("role", "button") toggle.setAttribute("tabindex", "0") toggle.addEventListener("click", function (event) { var expandedBuyingOptions = buybox.querySelectorAll(".buying-option.expanded") var buyboxWidth = buybox.offsetWidth ;[].slice.call(expandedBuyingOptions).forEach(function(option) { if (buyboxWidth <= buyboxMaxSingleColumnWidth && option != buyingOption) { hideBuyingOption(option) } }) var expanded = toggle.getAttribute("aria-expanded") === "true" || false toggle.setAttribute("aria-expanded", !expanded) form.hidden = expanded if (!expanded) { buyingOption.classList.add("expanded") } else { buyingOption.classList.remove("expanded") } priceInfo.hidden = expanded }, false) } } function hideBuyingOption(buyingOption) { var toggle = buyingOption.querySelector(".buying-option-price") var form = buyingOption.querySelector(".buying-option-form") var priceInfo = buyingOption.querySelector(".price-info") toggle.setAttribute("aria-expanded", false) form.hidden = true buyingOption.classList.remove("expanded") priceInfo.hidden = true } function initKeyControls() { document.addEventListener("keydown", function (event) { if (document.activeElement.classList.contains("buying-option-price") && (event.code === "Space" || event.code === "Enter")) { if (document.activeElement) { event.preventDefault() document.activeElement.click() } } }, false) } function initialStateOpen() { var buyboxWidth = buybox.offsetWidth var narrowBuyboxArea = buyboxWidth <= buyboxMaxSingleColumnWidth var allOptionsInitiallyCollapsed = buybox.className.indexOf("all-options-initially-collapsed") > -1 ;[].slice.call(buybox.querySelectorAll(".buying-option")).forEach(function (option, index) { var toggle = option.querySelector(".buying-option-price") var form = option.querySelector(".buying-option-form") var priceInfo = option.querySelector(".price-info") if (allOptionsInitiallyCollapsed || narrowBuyboxArea && index > 0) { toggle.setAttribute("aria-expanded", "false") form.hidden = "hidden" priceInfo.hidden = "hidden" } else { toggle.click() } }) } initialStateOpen() if (window.buyboxInitialised) return window.buyboxInitialised = true initKeyControls() })()

Other ways to access

Licence this eBook for your library

Institutional subscriptions

About this book

Get ready to go from the basics of using Ansible to becoming proficient at implementing configuration management in your projects. This book begins with the basics of Ansible, providing you with details on how to install and configure your environment while working with different Ansible modules from the command line. Next, it introduces you to working with Ansible tasks and organizing configuration code into playbooks. 

You’ll then learn how to extend playbooks further, using roles and templates within the configuration code. Author Vincent Sesto then extends your knowledge further by covering custom Ansible modules using Python and Linux shell scripts and demonstrating how you can start to keep your secret values encrypted and secure using Ansible Vault. You’ll also develop Ansible roles with the use of Ansible Galaxy to reuse existing roles that others have created.

This updated edition reflects changes added in the latest version of Ansible (2.9). It also includes an expanded chapter on testing Ansible using Molecule and managing large server environments using applications like Ansible Tower.

What Will You Learn

  • Understand what Ansible is and how to install and run your first basic command line commands
  • Expand your configuration management using Ansible playbooks, roles and templates
  • Customize your code further using Ansible Vault and third-party roles in Ansible Galaxy.
  • Work with Ansible in managing cloud infrastructure, specifically in Amazon Web Services
  • Troubleshoot your Ansible code and use frameworks like Molecule and Testinfra to help test your code changes
  • Manage large server environments using real-world examples and extend your configurations using an application like Ansible Tower

Who This Book Is For

Systems Engineers, Developers, DevOps Engineers and Software Administrators.

Similar content being viewed by others

Table of contents (9 chapters)

Authors and Affiliations

  • Auckland, New Zealand

    Vincent Sesto

About the author

Vincent Sesto is a DevOps engineer, endurance athlete and author.

As a DevOps engineer Vince specializes in Linux, Amazon Web Services, and open source applications. He is particularly interested in developing his skills in DevOps, continuous integration, security, log aggregation (management, UI, and reporting), and Python development. In his spare time, you’ll find him running or cycling for long periods of time, making the most of his time outdoors.



Accessibility Information

PDF accessibility summary

This PDF does not fully comply with PDF/UA standards, but does feature limited screen reader support, described non-text content (images, graphs), bookmarks for easy navigation and searchable, selectable text. Users of assistive technologies may experience difficulty navigating or interpreting content in this document. We recognize the importance of accessibility, and we welcome queries about accessibility for any of our products. If you have a question or an access need, please get in touch with us at [email protected].

EPUB accessibility summary

This ebook is designed with accessibility in mind, aiming to meet the ePub Accessibility 1.0 AA and WCAG 2.0 Level AA standards. Its features include descriptions for images and other non-text content, as well as rich navigation that is compatible with screen readers. We recognize the importance of accessibility, and we welcome queries about accessibility for any of our products. If you have a question or an access need, please get in touch with us at [email protected].

Bibliographic Information

  • Book Title: Practical Ansible

  • Book Subtitle: Configuration Management from Start to Finish

  • Authors: Vincent Sesto

  • DOI: https://doi.org/10.1007/978-1-4842-8643-2

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Apress Access Books, Professional and Applied Computing (R0)

  • Copyright Information: Vincent Sesto 2022

  • Softcover ISBN: 978-1-4842-8642-5Published: 22 September 2022

  • eBook ISBN: 978-1-4842-8643-2Published: 21 September 2022

  • Edition Number: 2

  • Number of Pages: XXII, 327

  • Number of Illustrations: 45 b/w illustrations

  • Topics: Web Development

Keywords

Publish with us