Ansible for IT Experts
()
About this ebook
Related to Ansible for IT Experts
Related ebooks
IT Infrastructure Automation Using Ansible: Guidelines to Automate the Network, Windows, Linux, and Cloud Administration Rating: 0 out of 5 stars0 ratingsGetting Started with Terraform Rating: 5 out of 5 stars5/5Nginx Essentials Rating: 0 out of 5 stars0 ratingsOpenStack Essentials Rating: 0 out of 5 stars0 ratingsHands-on GitHub Actions: Implement CI/CD with GitHub Action Workflows for Your Applications Rating: 0 out of 5 stars0 ratingsCompTIA Linux+/LPIC-1: Training and Exam Preparation Guide (Exam Codes: LX0-103/101-400 and LX0-104/102-400) Rating: 0 out of 5 stars0 ratingsGitLab Cookbook Rating: 0 out of 5 stars0 ratingsGetting Started with Red Hat Enterprise Virtualization Rating: 0 out of 5 stars0 ratingsCentOS System Administration Essentials Rating: 0 out of 5 stars0 ratingsGit Best Practices Guide Rating: 0 out of 5 stars0 ratingsLearning Docker - Second Edition Rating: 0 out of 5 stars0 ratingsCentOS High Availability Rating: 5 out of 5 stars5/5Ubuntu Server Essentials Rating: 0 out of 5 stars0 ratingsPostgreSQL 11 Administration Cookbook: Over 175 recipes for database administrators to manage enterprise databases Rating: 0 out of 5 stars0 ratingsRHCSA Red Hat Enterprise Linux 8 (UPDATED): Training and Exam Preparation Guide (EX200), Second Edition Rating: 5 out of 5 stars5/5Working with Linux – Quick Hacks for the Command Line Rating: 5 out of 5 stars5/5Instant Debian - Build a Web Server Rating: 0 out of 5 stars0 ratingsMonitoring Docker Rating: 0 out of 5 stars0 ratingsThe Way to Go: A Thorough Introduction to the Go Programming Language Rating: 2 out of 5 stars2/5Microservices with Azure Rating: 0 out of 5 stars0 ratingsLearn Docker - .NET Core, Java, Node.JS, PHP or Python: Learn Collection Rating: 5 out of 5 stars5/5Ansible Playbook Essentials Rating: 0 out of 5 stars0 ratingsMastering Ansible Rating: 5 out of 5 stars5/5Mastering Ansible - Second Edition Rating: 0 out of 5 stars0 ratingsAnsible Linux Filesystem By Examples: 30+ Automation Examples on Linux File and Directory Operation for Modern IT Infrastructure Rating: 0 out of 5 stars0 ratingsAnsible For Containers and Kubernetes By Examples Rating: 0 out of 5 stars0 ratingsLearn Kubernetes - Container orchestration using Docker: Learn Collection Rating: 4 out of 5 stars4/5
Computers For You
The Invisible Rainbow: A History of Electricity and Life Rating: 4 out of 5 stars4/5Standard Deviations: Flawed Assumptions, Tortured Data, and Other Ways to Lie with Statistics Rating: 4 out of 5 stars4/5Slenderman: Online Obsession, Mental Illness, and the Violent Crime of Two Midwestern Girls Rating: 4 out of 5 stars4/5Procreate for Beginners: Introduction to Procreate for Drawing and Illustrating on the iPad Rating: 0 out of 5 stars0 ratings101 Awesome Builds: Minecraft® Secrets from the World's Greatest Crafters Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Elon Musk Rating: 4 out of 5 stars4/5The ChatGPT Millionaire Handbook: Make Money Online With the Power of AI Technology Rating: 0 out of 5 stars0 ratingsAlan Turing: The Enigma: The Book That Inspired the Film The Imitation Game - Updated Edition Rating: 4 out of 5 stars4/5Dark Aeon: Transhumanism and the War Against Humanity Rating: 5 out of 5 stars5/5Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 5 out of 5 stars5/5Everybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Hacking: Ultimate Beginner's Guide for Computer Hacking in 2018 and Beyond: Hacking in 2018, #1 Rating: 4 out of 5 stars4/5How to Create Cpn Numbers the Right way: A Step by Step Guide to Creating cpn Numbers Legally Rating: 4 out of 5 stars4/5CompTIA IT Fundamentals (ITF+) Study Guide: Exam FC0-U61 Rating: 0 out of 5 stars0 ratingsMaster Builder Roblox: The Essential Guide Rating: 4 out of 5 stars4/5Remote/WebCam Notarization : Basic Understanding Rating: 3 out of 5 stars3/5CompTIA Security+ Practice Questions Rating: 2 out of 5 stars2/5Summary of Max Tegmark's Life 3.0 Rating: 0 out of 5 stars0 ratingsThe Insider's Guide to Technical Writing Rating: 0 out of 5 stars0 ratingsThe Hacker Crackdown: Law and Disorder on the Electronic Frontier Rating: 4 out of 5 stars4/5Ultimate Guide to Mastering Command Blocks!: Minecraft Keys to Unlocking Secret Commands Rating: 5 out of 5 stars5/5
Reviews for Ansible for IT Experts
0 ratings0 reviews
Book preview
Ansible for IT Experts - Denis Zuev
Mostovshchikov
Copyright © 2018 Denis Zuev, Artemii Kropachev and Dmitrii Mostovshchikov.
www.dzuev.pro
All rights reserved. No part of this book may be reproduced, stored, or transmitted by any means—whether auditory, graphic, mechanical, or electronic—without written permission of the author, except in the case of brief excerpts used in critical articles and reviews. Unauthorized reproduction of any part of this work is illegal and is punishable by law.
ISBN: 978-1-4834-8112-8 (sc)
ISBN: 978-1-4834-8111-1 (e)
Because of the dynamic nature of the Internet, any web addresses or links contained in this book may have changed since publication and may no longer be valid. The views expressed in this work are solely those of the author and do not necessarily reflect the views of the publisher, and the publisher hereby disclaims any responsibility for them.
Any people depicted in stock imagery provided by Thinkstock are models, and such images are being used for illustrative purposes only.
Certain stock imagery © Thinkstock.
Lulu Publishing Services rev. date: 2/1/2018
Preface
Hello everyone,
Before you start reading any further, I want to tell you that this book is intended to teach you some Ansible basics and get you started in your automation journey. I hope that once you finished reading this book, it plants the seed and eventually grows up to something more and eventually change your mindset. Because it changed mine. I and my colleagues want to share that experience with you, and get you started with Ansible and Automation in general.
I am getting a lot of messages on a daily basis from people with networking background via emails, texts, linkedin, skype asking me about what to next, where is it all going, how do I start with Linux, Automation or DevOps, and all other sort of questions. And I always tell them that Automation is the key and the future, do not be afraid to start doing it right now, be ready to step out your comfort zone and deep dive into it. Good luck! .
Denis Zuev, 12/20/2017
Introduction
This book is intended to share our experience and approach in Automating your infrastructure with Ansible. We are extremely technical and practical people, and that is why we cover just a little bit of theory and give you more practical examples.
There is a lot of examples and exercises around the topics and challenges we think you might face during your Automation journey.
To help you pick the starting point, below is a brief chapter-by-chapter description of this book.
Chapter 1 explains what Git is and how it may help you during your Automation journey.
Chapter 2 gives you basic information about Vagrant and how to build your lab environment. We use Vagrant with virtualbox/kvm in this book to speed up bringing up your lab environment. You can use other virtualization platforms for your lab, if you know what you are going.
Chapter 3 main chapter about Ansible. We have plenty of examples here based on what we use on a daily basis. Remember, that practice is the key to success.
Chapter 4 gives some tips and tricks which you can use while working with Ansible on a daily basis. That should keep you out of troubles for some time.
Prerequisites
Before you begin, we want to make sure that you have everything in place. You will need a PC with at least 8GB of RAM and at least 20GB of free disk space. CPU is not that relevant, but make sure you have some CPU resources available for a better performance. OS is not that relevant since Vagrant will run on majority of operating systems. But in this book, we use MacOS 10.12, Ubuntu 16.04 and Centos 7.4.
We also assume that our readers have basic understanding of Linux-like operating systems.
About the Authors
Denis Zuev is a passionate IT expert with more than 10 years of experience. Throughout his career he has taken development, pre-sales, architect, and managerial roles in small to international size projects with the main focus in networking. Several years back he started working with SDN, Open Source, Automation and DevOps and Programming and this is what he spends most of his time nowadays. Denis is also known for his professional and certification achievements. At the moment of writing this book he holds following industry expert level certifications: RHCA, CCIE, JNCIE, CCDE, HCIE, VCIX-NV.
Dmitrii Mostovshchikov has been working in the IT for last 15 years with the main focus on open source technologies. He started working with FreeBSD in the University back in 2001. It showed him how powerful Open Source is. He started as Systems Admin and continued as Developer and System Architect. Few years ago he switched and deep dived into Virtualization, Clouds, Containers, Automation, and DevOps technologies and products. He is an eager learner especially when it comes to Open Source related technologies and products. Dmitrii is also a Red Hat Certified Architect Level 9 and holds a lot of other excellence certificates by Red Hat.
Artemii Kropachev is a passionate IT expert with more than 15 years experience with Linux and Open Source in general. He started as a Pascal/Delphi developer for scientific programs in 1998 and moved to perl/c/php to development and FreeBSD system administration in 2002. He has done a lot of Linux, Oracle Solaris, IBM AIX, HP-UX, *BSD projects as well as building IaaS/PaaS/SaaS clouds with high level of automation based on the following technologies: OpenStack, AWS, OpenShift, Kubernetes, Ansible, Chef, Puppet. Artemii is one of the most certified Red Hat Certified Architects in the word. Currently his certification status is Red Hat Certified Architect Level 17.
Chapter 1. Git
Why Git
We were looking for a tool which allows us to provide a better experience with our readers. It had to be popular, easy to learn and free to use. Since we are using Git, the choice is very obvious. For those who