Infrastructure at your Service


Ansible Archives - Blog dbi services

Joël Cattin

Scanning Ansible code with Ansible Lint

By | Ansible, Development & Performance, DevOps | No Comments

Introduction It’s always good to learn something new. But doing it the right way from the very beginning is even better. I recently started to work with Ansible and after creating a few roles, I quickly realized that there were many different ways to achieve the same goal. Some examples are : – The use of the Shell module vs the Command module – The use of Loop vs With_* – The use of an…

Read More
Mehdi Bada

Deploy a Kubernetes cluster using Ansible in AWS

By | Ansible, AWS, DevOps, Docker, Kubernetes | No Comments

After more than 2 years of experience in Kubernetes cluster administration, I am deeply convinced that one of the most important things to have as an ops guy is a sandbox cluster at your disposal. This can be either a sleeping cluster or a new fresh installation with all your standards replicated on it to perform your series of tests. In this blog post, we consider that you have an AWS account with limited credits,…

Read More
Stéphane Haby

Ansible Basics Workshop day @dbi services

By | Ansible, Database Administration & Monitoring, DevOps, Technology Survey | No Comments

Today, I follow our Workshop Ansible Basics with Jérôme Witt. Why I follow this workshop? First, it’s to have the basics and Best Practices before begin myself and do “bricolage” by my customers. The second point is to develop templates to use and reuse by all customers if needed. Let’s start the course! My first remark is that the Control node cannot be installed on a Windows machine… Not good news for me! 👿 I…

Read More
Joël Cattin

Automating Linux patching with Ansible

By | Ansible, DevOps, Operation systems, Security | One Comment

Since the beginning of the year, several vulnerabilities have been discovered in the Linux Kernel as well as in others important and widely-used packages. Among them, there was the famous CVE-2021-3156 affecting the sudo package and allowing any unprivileged user to gain root privileges. This one had a base score of 7.8, which is considered as high. This kind of events demonstrate the importance of having a strong patching strategy to ensure up-to-date softwares and…

Read More
Jérôme Witt

Ansible loop over registered results

By | DevOps | One Comment

We were recently confronted with one of our playbook constraint while trying to identify which database software could be uninstalled from our servers. Until now, we ran the playbook to de-install a specific version which were “discovered manually”. However, we even got lazy to run this “discovery phase” manually. This short post explains how to design a play around the results of a specific task like generating a list of obsolete Oracle RDBMS software.

Read More
Daniel Westermann

Using Ansible to bring up a three node Patroni cluster in minutes

By | Database Administration & Monitoring | No Comments

Automation is key today, nobody wants to do the same tasks over and over and again. Cloud without automation is not even possible. There are several tools around that help with automation and one of the most popular is Ansible. We already have several posts about Ansible on our blog platform but this one will be rather long. Setting up PostgreSQL high available architectures is our daily business and we as well try to automate…

Read More
Julia Gugel

Deploy DC/OS using Ansible (Part 2) – Playbooks

By | Database Administration & Monitoring | No Comments
Finally, after all the configuration stuff is done, we can run the playbooks Create SSH Access First the SSH Access on all nodes need to be created. Therefore the access-onprem.yml is used: Be careful, I used CentOS on my system, so I commented the apt-get and the debian-based part out. If you want to run the playbook on another operating system, adjust it carefully. --- # This playbook enable access to all ansible targets via...
Read More