Ansible Playbook Essentials by Gourav Shah

By Gourav Shah

Design automation blueprints utilizing Ansible's playbooks to orchestrate and deal with your multitier infrastructure

About This Book

  • Get to grips with Ansible's good points akin to orchestration, automated node discovery, and knowledge encryption
  • Create data-driven, modular and reusable automation code with Ansible roles, proof, variables, and templates
  • A step by step method of automating and handling procedure and alertness configurations successfully utilizing Ansible's playbooks

Who This ebook Is For

If you're a platforms or automation engineer who intends to automate universal infrastructure initiatives, installation purposes, and use orchestration to configure platforms in a coordinated demeanour, then this publication is for you. a few figuring out of the Linux/Unix command-line interface is expected.

What you'll Learn

  • Write basic projects and plays
  • Organize code right into a reusable, modular structure
  • Separate code from information utilizing variables and Jinja2 templates
  • Run customized instructions and scripts utilizing Ansible's command modules
  • Control execution move in response to conditionals
  • Integrate nodes and realize topology information regarding different nodes within the cluster
  • Encrypt info with Ansible-vault
  • Create environments with remoted configurations to compare the applying improvement workflow
  • Orchestrate infrastructure and installation functions in a coordinated manner

In Detail

This e-book will allow you to write a blueprint of your infrastructure, encompassing multitier purposes utilizing Ansible's playbooks. starting with uncomplicated innovations similar to performs, initiatives, handlers, stock, and the YAML syntax that Ansible makes use of, you will discover tips to set up your code right into a modular constitution. construction in this, you'll grasp options to create data-driven playbooks with variables, templates, logical constructs, and encrypted info. This booklet also will take you thru complicated clustering options, equivalent to studying topology information regarding different nodes within the cluster, dealing with a number of environments with remoted configurations, and orchestrate infrastructure and install functions in a coordinated manner.

By the tip of this ebook, it is possible for you to to layout options for your automation and orchestration difficulties utilizing playbooks fast and efficiently.

Show description

Read or Download Ansible Playbook Essentials PDF

Best linux books

Introduction to Linux: A Hands on Guide

Many folks nonetheless think that studying Linux is hard, or that simply specialists can know how a Linux procedure works. although there's a lot of loose documentation to be had, the documentation is generally scattered on the net, and sometimes complicated, because it is mostly orientated towards skilled UNIX or Linux clients.

Z Vm and Linux Operations for Z Os System Programmers

This IBM Redbooks ebook discusses z/VM and Linux operations from the viewpoint of the z/OS programmer or method programmer. even if different books were written approximately lots of those subject matters, this booklet provides adequate information regarding each one subject to explain z/VM and Linux on IBM procedure z operations to a person who's new to either environments.

CompTIA Linux+ Certification Study Guide: Exam XK0-003

CompTIA's Linux+ certification is a globally-recognized, seller impartial examination. The Linux+ examination (XK1-003) is a sizeable revision with updates on purposes, networking, and defense. Our new examine consultant is aligned to hide all the fabric of the up-to-date 2009 examination with unique recognition to the recent issues together with troubleshooting Web-related providers, realizing DNS list varieties and resolving them, and the fundamentals of SELinux protection.

Git : Best Practices Guide

Grasp the easiest practices of Git with the aid of real-time situations to maximise staff potency and workflowAbout This BookWork with a versioning device for non-stop integration utilizing GitLearn the best way to make the easiest use of Git's featuresComprehensible guidance with priceless methods and information for successfully utilizing Git for collaborative and Agile developmentWho This e-book Is ForIf you're a developer and also you are looking to thoroughly grasp Git with out heavy conception, this is often the publication for you.

Extra info for Ansible Playbook Essentials

Example text

Errata Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title.

5 GB RAM available Disk Space 20 GB of free space Operating System Windows, OS X (Mac), Linux The base software For the purpose of setting up the learning environment, we recommend using the following software: VirtualBox: Oracle's virtualbox is a desktop virtualization software, which is freely available. It works on a variety of operating systems, including Windows, OS X, Linux, FreeBSD, Solaris, and so on. It provides a layer of hypervisor and allows one to create and run virtual machines on top of an existing base OS.

You will also learn about the components of a playbook. Chapter 2, Going Modular with Ansible Roles, will demonstrate creating modular reusable automation code using Ansible roles, which are units of automation. Chapter 3, Separating Code and Data – Variables, Facts, and Templates, covers the creation of flexible, customizable, data-driven roles with templates and variables. You will also learn about auto-discovered variables, that is, facts. Chapter 4, Bringing In Your Code – Custom Commands and Scripts, covers bringing in your existing scripts and invoking Shell commands with Ansible.

Download PDF sample

Rated 4.05 of 5 – based on 27 votes
Posted In CategoriesLinux