Ansible: Dynamic lists

Hi there, In the last few days I needed to use lists in ansible which are extended and manipulated at runtime. So I will leave a short code snipped here - maybe it is useful for you too: - hosts: localhost connection: local vars: my_list: [ "Hello", "World", "this", "is"…

Ansible: Collections & FQCN

Hey! In our Ansible 101 guide, we learned about roles. But there is another thing in Ansible called collections. In this blog post I want to explain what collections are used for and what an FQCN (Fully Qualified Collection Name) is. So what is a collection? Basically, it is a…

Ansible 101: #014 - Roles

Hello everyone. We are slowly approaching the end of the "Ansible 101", the basics of Ansible. However, we still have one big topic to cover: Roles. So far, we have been writing and running our Ansible code in playbooks. Now, if we want to write Ansible code that we want…

Ansible 101: #013 - Ansible Vault

Hello everyone. In this part of the Ansible guide, I want to introduce you to the Ansible Vault. We can use it to encrypt data in Ansible. Many tasks require credentials that we do not want to store in plain text as a variable. The Ansible Vault is included with…

Ansible 101: #012 - Loops 2

Hello everyone! After a long break, I finally got back to blogging. As promised, here is the next part of the Ansible Starter Guide, which will give you more information about using loops. Dictionaries But before we return to our loops, I would like to introduce you to dictionaries, which…

Ansible 101: #011 - Check Mode

Hello dear readers. I was just reading through the previous posts in the Ansible guide and realized that I forgot to mention two important Ansible features. One is check mode, which allows us to run playbooks in test mode. Changes are only shown in the output, not actually executed. Second,…

Ansible 101: #010 - Loops 1

Hello everyone! In this part of the Ansible tutorial, we're going to look at loops. Since there is a lot to say about this topic, I will split it into (at least) two parts. In this part we will start with the basics and simple use of loops, in the…

Ansible 101: #009 - Conditionals 2

Hello everyone. As promised, I would like to show you some examples of how we can use conditionals in Ansible. For this purpose, I have added another host to my test setup - this time with a CentOS operating system: ansible-guide-4 OS: CentOS 8 IP: 192.168.0.14 Our…