search
Subscription
0
cart
close
You have no products in your basket yet
left
Tech Categories
Tech Categories
Data Web Development Programming Cloud and Networking Security Game Development Mobile IoT and Hardware Business and Other
Best Sellers
Tech Categories
Data Web Development Programming Cloud and Networking Security Game Development Mobile IoT and Hardware Business and Other
Best Sellers
New Releases
Tech Categories
Data Web Development Programming Cloud and Networking Security Game Development Mobile IoT and Hardware Business and Other
New Releases
Books
Tech Categories
Data Web Development Programming Cloud and Networking Security Game Development Mobile IoT and Hardware Business and Other
Popular Books
Videos
Tech Categories
Data Web Development Programming Cloud and Networking Security Game Development Mobile IoT and Hardware Business and Other
Popular Videos
Audiobooks
Tech Categories
Data Web Development Programming Cloud and Networking Security Game Development Mobile IoT and Hardware Business and Other
Popular Audiobooks
Articles
Newsletters
right
Mastering Ansible, 4th Edition - Fourth Edition

Mastering Ansible, 4th Edition: Automate configuration management and overcome deployment challenges with Ansible, Fourth Edition

By James Freeman , Jesse Keating
£25.99 £17.99
Book Dec 2021 540 pages 4th Edition
eBook
£25.99 £17.99
Print
£32.99
Subscription
£13.99 Monthly
eBook
£25.99 £17.99
Print
£32.99
Subscription
£13.99 Monthly

What do you get with eBook?

Feature icon Instant access to your Digital eBook purchase
Feature icon Download this book in EPUB and PDF formats
Feature icon Access this title in our online reader with advanced features
Feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now

Product Details


Publication date : Dec 9, 2021
Length 540 pages
Edition : 4th Edition
Language : English
ISBN-13 : 9781801818780
Vendor :
Red Hat
toc View table of contents toc Preview Book toc Download Code

Key benefits

  • Completely revised and updated for Ansible 4.0 and beyond
  • Tackle complex automation challenges with the newly added features in Ansible
  • Learn about the rapidly expanding field of network automation using Ansible, with the help of practical examples for configuring network devices

Description

Ansible is a modern, YAML-based automation tool (built on top of Python, one of the world’s most popular programming languages) with a massive and ever-growing user base. Its popularity and Python underpinnings make it essential learning for all in the DevOps space. This fourth edition of Mastering Ansible provides complete coverage of Ansible automation, from the design and architecture of the tool and basic automation with playbooks to writing and debugging your own Python-based extensions. You'll learn how to build automation workflows with Ansible’s extensive built-in library of collections, modules, and plugins. You'll then look at extending the modules and plugins with Python-based code and even build your own collections — ultimately learning how to give back to the Ansible community. By the end of this Ansible book, you'll be confident in all aspects of Ansible automation, from the fundamentals of playbook design to getting under the hood and extending and adapting Ansible to solve new automation challenges.

What you will learn

Gain an in-depth understanding of how Ansible works under the hood Get to grips with Ansible collections and how they are changing and shaping the future of Ansible Fully automate the Ansible playbook executions with encrypted data Use blocks to construct failure recovery or cleanup Explore the playbook debugger and Ansible console Troubleshoot unexpected behavior effectively Work with cloud infrastructure providers and container systems

What do you get with eBook?

Feature icon Instant access to your Digital eBook purchase
Feature icon Download this book in EPUB and PDF formats
Feature icon Access this title in our online reader with advanced features
Feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now

Product Details


Publication date : Dec 9, 2021
Length 540 pages
Edition : 4th Edition
Language : English
ISBN-13 : 9781801818780
Vendor :
Red Hat

Table of Contents

18 Chapters
Preface Packt Packt
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Code in Action
Download the color images
Conventions used
Get in touch
Share Your Thoughts
Section 1: Ansible Overview and Fundamentals Packt Packt
Section 1: Ansible Overview and Fundamentals
Chapter 1: The System Architecture and Design of Ansible Packt Packt
Chapter 1: The System Architecture and Design of Ansible
Technical requirements
Ansible versions and configurations
Inventory parsing and data sources
Playbook parsing
Module transport and execution
Variable types and location
Accessing external data
Variable precedence
Summary
Questions
Chapter 2: Migrating from Earlier Ansible Versions Packt Packt
Chapter 2: Migrating from Earlier Ansible Versions
Technical requirements
Changes in Ansible 4.3
Upgrading from earlier Ansible installations
Installing Ansible from scratch
What are Ansible Collections?
Installing additional modules with ansible-galaxy
How to port legacy playbooks to Ansible 4.3 (a primer)
Summary
Questions
Chapter 3: Protecting Your Secrets with Ansible Packt Packt
Chapter 3: Protecting Your Secrets with Ansible
Technical requirements
Encrypting data at rest
Creating and editing encrypted files
Executing ansible-playbook with encrypted files
Mixing encrypted data with plain YAML
Protecting secrets while operating
Summary
Questions
Chapter 4: Ansible and Windows – Not Just for Linux Packt Packt
Chapter 4: Ansible and Windows – Not Just for Linux
Technical requirements
Running Ansible from Windows
Setting up Windows hosts for Ansible control using WinRM
Handling Windows authentication and encryption when using WinRM
Setting up Windows hosts for Ansible control using OpenSSH
Automating Windows tasks with Ansible
Summary
Questions
Chapter 5: Infrastructure Management for Enterprises with AWX Packt Packt
Chapter 5: Infrastructure Management for Enterprises with AWX
Technical requirements
Getting AWX up and running
Integrating AWX with your first playbook
Going beyond the basics
Summary
Questions
Section 2: Writing and Troubleshooting Ansible Playbooks Packt Packt
Section 2: Writing and Troubleshooting Ansible Playbooks
Chapter 6: Unlocking the Power of Jinja2 Templates Packt Packt
Chapter 6: Unlocking the Power of Jinja2 Templates
Technical requirements
Control structures
Data manipulation
Comparing values
Summary
Questions
Chapter 7: Controlling Task Conditions Packt Packt
Chapter 7: Controlling Task Conditions
Technical requirements
Defining a failure
Defining a change
Error recovery
Iterative tasks with loops
Summary
Questions
Chapter 8: Composing Reusable Ansible Content with Roles Packt Packt
Chapter 8: Composing Reusable Ansible Content with Roles
Technical requirements
Task, handler, variable, and playbook inclusion concepts
Roles (structures, defaults, and dependencies)
Summary
Questions
Chapter 9: Troubleshooting Ansible Packt Packt
Chapter 9: Troubleshooting Ansible
Technical requirements
Playbook logging and verbosity
Variable introspection
Debugging code execution
Summary
Questions
Chapter 10: Extending Ansible Packt Packt
Chapter 10: Extending Ansible
Technical requirements
Developing modules
Developing plugins
Developing dynamic inventory plugins
Contributing to the Ansible project
Summary
Questions
Section 3: Orchestration with Ansible Packt Packt
Section 3: Orchestration with Ansible
Chapter 11: Minimizing Downtime with Rolling Deployments Packt Packt
Chapter 11: Minimizing Downtime with Rolling Deployments
Technical requirements
In-place upgrades
Expanding and contracting
Failing fast
Minimizing disruptions
Serializing single tasks
Summary
Questions
Chapter 12: Infrastructure Provisioning Packt Packt
Chapter 12: Infrastructure Provisioning
Technical requirements
Managing an on-premise cloud infrastructure
Managing a public cloud infrastructure
Interacting with Docker containers
Building containers with Ansible
Summary
Questions
Chapter 13: Network Automation Packt Packt
Chapter 13: Network Automation
Technical requirements
Ansible for network management
Handling multiple device types
Working with the cli_command module
Configuring Arista EOS switches with Ansible
Configuring Cumulus Networks switches with Ansible
Best practices
Summary
Questions
Why subscribe?
Other Books You May Enjoy Packt Packt
Other Books You May Enjoy
Packt is searching for authors like you
Share Your Thoughts
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQS

How do I buy and download an eBook? Packt Packt

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Packt Packt

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Packt Packt
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Packt Packt

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Packt Packt
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Packt Packt

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.