Ansible 2 for Beginners
4.3 (23 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
193 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Ansible 2 for Beginners to your Wishlist.

Add to Wishlist

Ansible 2 for Beginners

Automate manual tasks for your organization with ease using the highly reliable Ansible 2
4.3 (23 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
193 students enrolled
Created by Packt Publishing
Last updated 4/2017
English
Curiosity Sale
Current price: $10 Original price: $125 Discount: 92% off
30-Day Money-Back Guarantee
Includes:
  • 4.5 hours on-demand video
  • 1 Supplemental Resource
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Configure and manage your infrastructure using Ansible Playbooks
  • Get acquainted with Modules, Playbooks, Roles, and Variables
  • Learn how to apply Conditions and Loops for control flow in your Playbooks
  • Apply Conditions and Loops
  • Create task Blocks and choose the right Ansible Strategy for the job
  • Integrate Ansible with various Cloud Providers such as AWS and Openstack
  • Understand the nuances of Ansible 2 and its new features
  • Provision Environments using Ansible
  • Get introduced to Ansible Galaxy and Tower
View Curriculum
Requirements
  • No prior knowledge of Ansible required. Ansible 2, Python 2.7, and OpenSSH required.
  • Machine with 8 GB RAM preferred. Linux machine or Virtual Machine with Linux installed. The course deploys an Ubuntu desktop Virtual machine running on Virtual box on Windows.
Description

Ansible is one of the most popular tools in the open source orchestration and automation space. This simple, agent-less tool can conquer almost any automation task. Whether you want to manage an entire cloud region, configure network devices, or orchestrate configuration changes across Linux or Windows machines, Ansible is up to the challenge.

In this course, you will get started with Ansible 2.0, including its installation, the problems it solves, and more. We will also walk through creating your very first playbooks. You’ll understand the power of variables and quickly be able to manage environments and implement strategies. You will find out how to integrate with different cloud platforms and be introduced to Ansible Galaxy and Tower, which are Ansible's enterprise tooling for supporting large-scale infrastructure.

By the end of this course, you will be well versed in the basics of Ansible and be able to automate your organizational infrastructure easily.

About the Author

David Cohen

I've been a system administrator, platform engineer, devops engineer, and software developer in everything from small businesses to growing companies (100+ employees) and large tech/engineering firms (10,000+ employees).

Most of my work has centered around Linux and Unix system administration, web security, and software development in Python, Ruby, Javascript, and Go. I've also done stranger things like helping to design two Tier-4 datacenters and being an Infantryman (not at the same time).

On my tutorialinux YouTube channel, I've helped tens of thousands of people learn the basics (and not-so-basics) of system administration, devops, and software engineering.

Who is the target audience?
  • Aimed at system administrators and IT professionals who are waiting to automate their organization’s infrastructure using Ansible 2. They have no prior knowledge on Ansible. Installation of Ansible and Ubuntu on a VM is covered in the course.
Students Who Viewed This Course Also Viewed
Curriculum For This Course
33 Lectures
04:21:36
+
Ansible 2 – What's It All About?
7 Lectures 39:48

This video provides an overview of the entire course.

Preview 04:25

In this section, you'll learn about the most popular uses of the Ansible automation tool. It's a tool that you can use to manage the full life cycle of your infrastructure.

What Is Ansible?
03:29

Ansible is more than just configuration management, like many other tools in this space. It's also much more lightweight than competitors like Puppet and Chef—to configure a server, all you need is an SSH login and Python 2 installed.

Why Ansible?
03:09

We'll use a simple example: installing and configuring an nginx server and a simple static HTML website, first using bash and then using Ansible.

Demonstration – From Bash to Ansible
19:28

This video gives you an overview of how the course is structured. The focus is on practical, real-world applications, since that prepares you for real-life application of this knowledge.

Course Layout
02:54

In this video, we'll cover the basic Ansible vocabulary. You'll have many basic questions answered.

Basic Ansible Vocabulary
02:53

In this video, you'll learn about the new features and improvements that Ansible 2.0 offers.

New Features in Ansible 2.0
03:30
+
Setting up the Learning Environment
5 Lectures 28:00

In this video, we'll set up an environment that you can use to safely practice everything you see in this course.

Preview 03:02

In this video, you'll learn the three most popular ways to install Ansible, and decide which one is right for you.

Installing Ansible
05:48

In this video, we'll cover how to build Ansible directly from its repository. This method is useful if you absolutely need a bleeding-edge feature, or if you're interested in contributing to the Ansible source code.

Bleeding-Edge Ansible Installation
08:30

In this video you'll learn how to simulate test machines with LXC (Linux Containers). LXC is a lightweight precursor to Docker which will let us configure some test hosts that we can run Ansible against.

Setting up our Test Environment
07:33

Ansible only requires two things: Python 2 and a running SSH service. In this video, I'll show you the 10-second process that prepares a brand-new host for Ansible.

Target Machine Requirements
03:07
+
Jumping into Ansible 2
8 Lectures 01:24:50

In this video, you'll learn where Ansible looks for its primary configuration file, and the different ways in which you can approach configuring Ansible.

Preview 05:16

How does Ansible know which hosts to configure? The Ansible Hosts (Inventory) file!

Ansible Hosts Inventory File
05:19

Ad-Hoc Commands are simple one-off commands that perform a single action on a target host. These simple replacements for small bash scripts or 'for' loops are run from the command-line, and work well for cases where a full-featured Playbook is overkill. You'll see Ad-Hoc commands for doing several things across one server, or many servers at once

Ad-Hoc Commands
07:54

Playbooks are the Ansible feature you'll be working with on most projects. In this video, you'll learn the three components that make a Playbook what it is: tasks, templates, and handlers.

Introduction top playbooks
19:40


In this video, you'll learn how to structure your playbooks for maximum readability, predictability, and flexibility. You'll learn aboutRoles, and how they can help you reuse code. Note: For this course, we're not using every available Playbook feature, because it can make things excessively complex. We're focusing on the practical 90% of features that you'll be using every day.

Playbook Structure
11:16

In this video, you'll learn what Ansible modules are and how they help you get things done.

Introduction to Modules
06:01

In this video, you'll learn about some of the most popular (and useful!) Ansible modules. At the end of this video, you'll have a list of modules to dig into, which you can use to manage.

Common Modules
11:29

In this video, you'll learn about how Ansible deals with Variables and Facts.

Variables and Facts
17:55
+
A Real-World Playbook
2 Lectures 26:45

In this video, you'll see a real-life web application deployment. We'll be setting up Mattermost, an open-source alternative to the popular Slack team-chat application.

Preview 12:02

This video reviews everything we just saw in the application deployment. After watching this video, you'll start to have an intuitive 'real-world' grasp of how a playbook works.

Real-Life Playbook Walkthrough
14:43
+
Loops, Blocks, Strategies, and Galaxies
8 Lectures 51:32

While developing Ansible automation, you'll be doing a lot of troubleshooting as part of the process. In this video, I'll show you themost common Ansible features that you'll use for debugging, along with some of the most common Ansible errors you'll encounter.

Preview 13:06

In this video, you'll learn about the control flow that you can use in your Tasks and Plays. At the end of this video, you'll be comfortable with Ansible iteration constructs like.

Conditionals and Control Flow
04:52

In addition to control flow in your YAML files, we can also introduce control flow for our file content in your Jinja2 templates.

Templating, Control Flow, and Iteration in Jinja2
07:37

We have been using YAML to write your Playbooks, Plays, Tasks, and Handlers. Now it's time to dig in for a moment and learn some of the rules you need to keep in mind when working with this markup language.

YAML Basics
04:37

Task Blocks are one of the useful new features in Ansible 2.0. They allow you to group related tasks together, so you can tie control-flow to larger chunks of actions. This is something that comes in handy for larger actions which are made up of several tasks.

Ansible Blocks
03:59

Ansible has two built-in execution strategies that affect how it applies tasks to hosts. Knowing whether you want to use the linear (default) strategy or the free strategy can make the difference between completing a deployment in minutes or hours

Performance and Execution Strategies
08:10

Ansible Galaxy allows you to leverage open-source roles that other people in the Ansible community have created. It can be useful for studying code that others have written, or for quickly getting some functionality that you need without having to write it from scratch.

Ansible Galaxy
04:58

In this video, I'll cover some of the basic security features. This is essentially a quick list of "best practices" and "things to watch out for." Using Ansible for provisioning, deployment, configuration management, and orchestration does not absolve you of managing the security of your systems...you'll still have to invest thought and planning into how you do this.

Security
04:13
+
Ansible in the Cloud
3 Lectures 30:41

Ansible can be used to provision services on all major cloud providers: Amazon Web Services (AWS), OpenStack, Google Cloud, Microsoft Azure, and more. There are also Ansible modules for on-premise virtualization and cloud solutions, which makes it really easy to get started.

Preview 03:01

In this demonstration, you'll see how the Mattermost Deployment playbook was ported to Amazon AWS.

Ansible AWS Demo
25:10

This video will give you a quick taste of Ansible's commercial solution: Ansible Tower. This is a web application wrapper around the core open-source Ansible toolset.

Ansible Tower
02:30
About the Instructor
Packt Publishing
3.9 Average rating
7,297 Reviews
52,320 Students
616 Courses
Tech Knowledge in Motion

Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.

With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.

From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.

Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.