Skip to content

Ansible

Automating databases, application servers and operating systems with Ansible: playbooks and roles, Ansible Automation Platform, and the practices that keep automation maintainable.

Customer case study – automating SQL Server TLS Encryption with Ansible and Certificates (Architecture)

When working with SQL Server environments, securing client connections can become an important requirement, especially when TLS encryption must be implemented using certificates. In this context, a customer asked us to develop an Ansible playbook and role to automate the configuration of TLS for SQL Server. The certificates are generated from the customer PKI and provided as PEM files containing… 

How to Standardize SQL Server Disks on VMs using Ansible

INTRODUCTION Today, the benefits of automation no longer need much explanation: saving time, reducing human error, and ensuring every environment remains aligned with internal standards. What is less obvious, however, is how using an Ansible Playbook can provide advantages that more traditional scripting approaches — such as large PowerShell scripts — struggle to offer. That is exactly what I want… 

Errorhandling in Ansible

Errors in tasks – abort or ignore? Per default, if a task in a playbook fails, then the execution of the playbook is stopped for that host. As you can see, the 2nd task is not executed. If you want to continue in such a case, the ignore_errors parameter is your friend Custom error conditions Per default, Ansible evaluates the… 

Parallel execution of Ansible roles

Introduction You can run a playbook for specific host(s), a group of hosts, or “all” (all hosts of the inventory). Ansible will then run the tasks in parallel on the specified hosts. To avoid an overload, the parallelism – called “forks” – is limited to 5 per default. A task with a loop (e.g. with_items:) will be executed serially per… 

Ansible: reduce output in loops – or replace loops

Reduce the output If you do a loop in Ansible, it always prints the item variable for each loop. “item” is the current list element. If you are looping over a list with small values, then the output is OK. But if the loop variable is a list of dict, especially with many or big values, then the log-output of… 

YaK Core – The Holy Grail for Deploying Ansible Code Everywhere

YaK core Multi-Platform open source Automation Tool simplifies the deployment of Ansible playbooks through a clean UI and API. It offers an intuitive interface where users can upload playbooks, configure parameters, and deploy them seamlessly across various platforms, and all managed through a centralized inventory stored in a PostgreSQL database. With YaK Core, developers can focus on writing application code… 

Migrating AWX from one Kubernetes cluster to another: A custom approach

In this guide, we’ll walk through migrating an AWX instance from one Kubernetes infrastructure to another, with two important considerations. First, both AWX instances are on completely different networks, meaning there’s no direct connectivity between them. Second, we aim to replicate the credentials (including passwords) stored in AWX, which requires careful handling. This approach differs from the official documentation due… 

Ansible loops: A guide from basic to advanced examples

If you are writing roles with Ansible, you must already have thought about implementing a loop, a loop of loops with Ansible, and wonder how. The ability to execute tasks in loops is primordial. This guide will provide multiple loop examples in Ansible, starting with a basic loop and progressing to more advanced scenarios. Basic loop Let’s start with the… 

Using WebHooks with GitLab to launch external tools

by Alexandre Nestor Introduction WebHooks are HTTP callbacks that are triggered by events. In case of GitlLab these can be events like pushing some code, or creating an issue, or pushing some comments, create a merge request and so on. Somehow, is a way for an application to send data, trigger events, in real time to another application, even if… 

Faster Ansible

Even if Ansible is powerful and flexible, it can be considered “slow”. It will be anyway faster, and more consistent, than doing the same steps manually. Nevertheless, we will experiment to make it even faster. I found few of them on the Internet, but rarely with figures of what to expect. In this blog post, I will cover one of… 

Configure Zabbix with Ansible

Besides the ability to setup your Zabbix server, proxy and agents, the Ansible collection for Zabbix (ie. community.zabbix) also allows to configure every aspects of your Zabbix system. From hosts to users, discovery rules or even templates. In this blog post, we will see how this module helped me to automatically configure hosts I provision with YaK in my Zabbix… 

Are You Afraid of the Word DevOps? – Part 1

We came to realize recently that there is a resistance to the word DevOps and it repels some of you. Sadly, by stopping to this word, it prevents you from entering his world! Do you feel that DevOps is just another buzzword and is hard to relate to something concrete? Bear with me, I’ll show you another door. To add…