Ansible Basics 07: Templates and Jinja2

In configuration management and automation, templates play a very important role. They allow you to create dynamic, reusable file content by using variables and other expressions in text files. In the context of Ansible, the template engine of choice is Jinja2. You will create mostly configuration templates in Jinja2 format, and address them in your playbooks with the ansible.builtin.template module. In this lesson you will also learn how can you use expressions in the template files.

Continue reading “Ansible Basics 07: Templates and Jinja2”

Ansible Basics 03: Running Ad-Hoc Commands

Ansible consists of several key components that collectively build a robust automation and configuration management. Ad-hoc commands are the easiest and fastest way to run some commands remotely or on a host. You have to understand the basic terminology to do this, so here is a quick start, and later we are going to go into the details in the upcoming articles.

Continue reading “Ansible Basics 03: Running Ad-Hoc Commands”

Ansible Basics 02: Installing Ansible

Ansible can be installed on a large variety of systems, but most people and companies run it on Linux hosts. Small companies and startups (with only a few administrators) do not dedicate a server for it, rather they use the admin workstations or notebooks. When a company grows and more people work on the environment they dedicate a server to these operations, and Ansible can scale well. In this article we go through the different alternative methods to install Ansible.

Continue reading “Ansible Basics 02: Installing Ansible”

Ansible Basics 01: Automation, Configuration Management, Infrastructure as Code

The Ansible Basics course is a new, free series from Tom’s IT Cafe for those who want to learn the foundations of automation, configuration management and infrastructure as code. The structure of the course is simple, starting with the installation of Ansible, through its configuration, to some examples of the usage. You have to understand some computer basics to fully understand this topic. This article series will not go into the details of networking, identity and access management nor security hardening. It will help you start working with Ansible, and initiate your automation journey. New articles on Tuesdays and Thursdays at 5PM CET.

Continue reading “Ansible Basics 01: Automation, Configuration Management, Infrastructure as Code”