Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Ansible for Real-Life Automation
Ansible for Real-Life Automation

Ansible for Real-Life Automation: A complete Ansible handbook filled with practical IT automation use cases

Arrow left icon
Profile Icon Gineesh Madapparambath
Arrow right icon
€22.99 €25.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.9 (7 Ratings)
eBook Sep 2022 480 pages 1st Edition
eBook
€22.99 €25.99
Paperback
€31.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Gineesh Madapparambath
Arrow right icon
€22.99 €25.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.9 (7 Ratings)
eBook Sep 2022 480 pages 1st Edition
eBook
€22.99 €25.99
Paperback
€31.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€22.99 €25.99
Paperback
€31.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Ansible for Real-Life Automation

Ansible Automation – Introduction

Ansible is open source automation and orchestration software that can be used for automating most of your operations with IT infrastructure components including servers, storage, networks, and application platforms. Ansible is one of the most popular automation tools in the IT world now and has strong community support with more than 5,000 contributors around the world.

In this chapter we are going to cover the following topics:

  • What is Ansible? Where should I use this automation tool?
  • Deploying Ansible
  • Configuring your managed nodes

As of today, Ansible is only available on Linux/Unix platforms, but that doesn't mean you cannot use Ansible to automate other operating systems (OSs) or devices. It is possible to use Ansible to automate almost all components involved in the IT infrastructure, as there are thousands of supported modules available to support Ansible automation.

Technical requirements

The following are the technical requirements to proceed with this chapter:

  • A basic understanding of the Linux OS and how to handle basic operations in Linux
  • One or more Linux machines

The codes and snippets used in the chapter are tested in Red Hat Enterprise Linux 8 (RHEL8). All the Ansible code, Ansible playbooks, commands, and snippets for this chapter can be found in the GitHub repository at https://github.com/PacktPublishing/Ansible-for-Real-life-Automation/tree/main/Chapter-01.

Hello engineers!

The primary role of a systems engineer is building and managing IT infrastructure for hosting applications and their data. In the olden days, the number of applications used was a lot less, hence the infrastructure size. As the applications and components grew, the IT infrastructure also grew, and systems engineers and system administrators started experiencing resource conjunction. In other ways, systems engineers are spending more time on building, maintaining, and supporting the infrastructure rather than spending time on improving the infrastructure designs and optimizing them.

For the support team, 90% of the event tickets are simple fixes including disk space full, user account locked, volumes not mounted, and so on. But the support engineer still needs to manually log in to each and every server and fix the issues one by one.

The task can be fixing a low disk space issue on servers, installing some packages, patching OSs, creating virtual machines, or resetting a user password; engineers are doing the same job repeatedly for multiple systems, and this led to the invention of automated operations. Initially, the solution for automation was custom scripts developed and maintained by individual engineers, but it was never a real solution for the enterprises as there was no collaboration, maintenance, or accountability for such custom automation scripts. If the developer leaves the organization, the script will become an orphan and the next engineer will create their own custom scripts.

With the introduction of DevOps methodologies and practices, developers, systems engineers, operations teams, and other platform teams started working together, the boundaries between them became thinner, and a better accountable ecosystem evolved. Everyone started building and maintaining the applications and the underlying IT infrastructure, which, in turn, made the automation use case list bigger and more complex.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Develop Ansible automation use cases by automating day-to-day IT and application operations
  • Use Ansible to automate private and public cloud, application containers, and container platforms
  • Improve your DevOps workflow with Ansible

Description

Get ready to leverage the power of Ansible’s wide applicability to automate and manage IT infrastructure with Ansible for Real-Life Automation. This book will guide you in setting up and managing the free and open source automation tool and remote-managed nodes in the production and dev/staging environments. Starting with its installation and deployment, you’ll learn automation using simple use cases in your workplace. You’ll go beyond just Linux machines to use Ansible to automate Microsoft Windows machines, network devices, and private and public cloud platforms such as VMWare, AWS, and GCP. As you progress through the chapters, you’ll integrate Ansible into your DevOps workflow and deal with application container management and container platforms such as Kubernetes. This Ansible book also contains a detailed introduction to Red Hat Ansible Automation Platform to help you get up to speed with Red Hat AAP and integration with CI/CD and ITSM. What’s more, you’ll implement efficient automation solutions while learning best practices and methods to secure sensitive data using Ansible Vault and alternatives to automate non-supported platforms and operations using raw commands, command modules, and REST API calls. By the end of this book, you’ll be proficient in identifying and developing real-life automation use cases using Ansible.

Who is this book for?

This book is for DevOps and systems engineers looking to adopt Ansible as their automation tool. To get started with this book, basic knowledge of Linux is necessary, along with an understanding of how tasks are done the manual way before setting out to automate them.

What you will learn

  • Explore real-life IT automation use cases and employ Ansible for automation
  • Develop playbooks with best practices for production environments
  • Approach different automation use cases with the most suitable methods
  • Use Ansible for infrastructure management and automate VMWare, AWS, and GCP
  • Integrate Ansible with Terraform, Jenkins, OpenShift, and Kubernetes
  • Manage container platforms such as Kubernetes and OpenShift with Ansible
  • Get to know the Red Hat Ansible Automation Platform and its capabilities

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 30, 2022
Length: 480 pages
Edition : 1st
Language : English
ISBN-13 : 9781803238623
Concepts :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Sep 30, 2022
Length: 480 pages
Edition : 1st
Language : English
ISBN-13 : 9781803238623
Concepts :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 106.97
Ansible for Real-Life Automation
€31.99
Mastering Ubuntu Server
€41.99
Mastering Ansible, 4th Edition
€32.99
Total 106.97 Stars icon

Table of Contents

21 Chapters
Part 1: Using Ansible as Your Automation Tool Chevron down icon Chevron up icon
Chapter 1: Ansible Automation – Introduction Chevron down icon Chevron up icon
Chapter 2: Starting with Simple Automation Chevron down icon Chevron up icon
Chapter 3: Automating Your Daily Jobs Chevron down icon Chevron up icon
Chapter 4: Exploring Collaboration in Automation Development Chevron down icon Chevron up icon
Part 2: Finding Use Cases and Integrations Chevron down icon Chevron up icon
Chapter 5: Expanding Your Automation Landscape Chevron down icon Chevron up icon
Chapter 6: Automating Microsoft Windows and Network Devices Chevron down icon Chevron up icon
Chapter 7: Managing Your Virtualization and Cloud Platforms Chevron down icon Chevron up icon
Chapter 8: Helping the Database Team with Automation Chevron down icon Chevron up icon
Chapter 9: Implementing Automation in a DevOps Workflow Chevron down icon Chevron up icon
Chapter 10: Managing Containers Using Ansible Chevron down icon Chevron up icon
Chapter 11: Managing Kubernetes Using Ansible Chevron down icon Chevron up icon
Chapter 12: Integrating Ansible with Your Tools Chevron down icon Chevron up icon
Chapter 13: Using Ansible for Secret Management Chevron down icon Chevron up icon
Part 3: Managing Your Automation Development Flow with Best Practices Chevron down icon Chevron up icon
Chapter 14: Keeping Automation Simple and Efficient Chevron down icon Chevron up icon
Chapter 15: Automating Non-Standard Platforms and Operations Chevron down icon Chevron up icon
Chapter 16: Ansible Automation Best Practices for Production Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.9
(7 Ratings)
5 star 71.4%
4 star 0%
3 star 0%
2 star 0%
1 star 28.6%
Filter icon Filter
Top Reviews

Filter reviews by




carey chin Dec 09, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Fed using version 13 with HA ..we admin boxes
Amazon Verified review Amazon
S. ONI Jan 02, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I have this book. I know the printing is not the best but don’t judge this book by that. This book is very loaded with precise knowledge of Ansible. I don’t know the Author, he does not know me. I’m not getting paid for this comment. If you really want to learn about Ansible, this is the book. You won’t regret it.
Amazon Verified review Amazon
Nived Oct 23, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The industry is moving towards automation. I know of companies that have designated individual for enterprise wide automation called "Automation Architects". This is also a big part of my own job here at Red Hat.I love the author has guided this book through beginner baby steps and then gradually stepping into more complex situations and use-cases. It doesn't matter if you're only a newbie to Ansible or someone with 5 years of experience, you will find value in this book.I love that the author has covered automation of modern technologies and framework in this book like Cloud & Devops. I highly recommend this to anyone who seriously wants to make an impact in their career. :)
Amazon Verified review Amazon
chouse Feb 10, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Ansible for Real-Life automation will help any IT professional streamline their infrastructure management processes. It provides a practice guide to using Ansible for automation and configuration management across many different scenarios.After a brief introduction to what Ansible is and how to deploy it, the author describes simple automation tasks that can be done, and then moves in to how multiple engineers can work with and share Ansible artifacts.One thing I was glad to see is how to use Ansible with Microsoft Windows servers using WinRM, and other API-based systems. Ansible is not just for Linux!Overall a good book, with lots of examples, and definitely a great reference. It fills in a lot of gaps for me, especially when I was just getting started with Ansible.
Amazon Verified review Amazon
C. C Chin Jan 14, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Need expert help
Amazon Verified review Amazon
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? Chevron down icon Chevron up icon

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? Chevron down icon Chevron up icon

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? Chevron down icon Chevron up icon
  • 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? Chevron down icon Chevron up icon

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? Chevron down icon Chevron up icon
  • 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? Chevron down icon Chevron up icon

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.