Ansible 101: #008 - Conditionals

Hello everyone! After a long break, I'm back with part 8 of the Ansible Starter Guide. In this post, I want to show you what conditionals are and how we can use them in playbooks. I decided to split this topic into two articles because the blog post would otherwise…

Ansible 101: #007 - Return values

Hello, the Ansible Starter 101 continues. We have already reached part 7, which deals with task return values. Now you're probably asking yourself: What the hell are return values and why do I need them? Briefly summarized: When a task is executed, it produces a return value that contains information…

Ansible 101: #006 - Facts

Hello everyone. This is part 6 of the Ansible 101 guide. In this part I would like to take a look at the so-called facts with you. These are not difficult to understand, but can make our lives easier for many tasks with Ansible. What are facts? You may have…

Ansible 101: #005 - Variables

Hello and welcome back to the Ansible Starter Guide. In this fifth part of the series, I want to show you how variables work and how we can use them to deal with differences between different systems. The simplest use of variables is to store multiple values (such as file…

Ansible 101: #004 - Playbooks, tasks and handlers

Welcome back to the Ansible 101 Guide. In this part of the tutorial, I will try to show you how to use playbooks. I will also show you what tasks and handlers are and how we use them. Playbooks We can use playbooks to define reusable Ansible code. A playbook…

Ansible 101: #003 - Getting started

Hello everyone! We're finally getting started with Ansible. Lets start with a practical setup. My example setup To illustrate this part with practical examples, I have set up a small test scenario. This will remain basically the same for the rest of the guide, but will be expanded to include…

Ansible 101: #002 - Install Ansible

Here I am again! As promised, this part will cover the installation of Ansible. This is not rocket science, so it will probably be one of the shorter parts. General information Throughout this guide I will mainly be discussing using it on Linux. Using it on Windows is slightly different,…

Ansible 101: #001 - Basics

Heyho! Welcome to my Ansible 101 Guide. I'm going to walk you through the most important aspects of Ansible. On the one hand, I'll try to explain all the mechanics in as much detail as possible and in an understandable way, but I'll also illustrate the whole thing with practical…