Ansible has a lot of ways to manipulate variables and their content. We shed some light on the different possibilities – and how to combine them. Ansible inbuilt filters One way to manipulate variables in Ansible is to use filters. Filters are connected to variables via pipes, |, and the result is the modified variable. Ansible offers … Continue reading [HowTo] How to combine Python methods with Jinja filters in Ansible
Running programs as a non-root user is must in security sensitive environments. However, these programs sometimes need to publish their service on privileged ports like port 80 – which cannot be used by local users. Systemd offers a simple way to solve this problem. Background Running services as non-root users is a quite obvious: if … Continue reading [Howto] Run programs as non-root user on privileged ports via Systemd
A few days ago the Ansible package was removed from EPEL and many ask why that happened. The background is that Ansible is now provided in certain Red Hat channels. What happened? In the past (pre-2017-10) most people who were on RHEL or CentOS or similar RHEL based systems used to install Ansible from the EPEL repository. … Continue reading Ansible package moved from EPEL to extras
Ansible’s strenght is to work with all kinds of devices and services – in one go. To properly call a variable value from one server while working on another host the variable needs to be referenced properly. One of the major strength about Ansible is the capability to almost seamlessly talk to different hosts, devices … Continue reading [Howto] Reference Ansible variables between plays
Ansible is a great tool to automate almost anything in IT. However, one of the core concepts of Ansible is the inventory where the to be managed nodes are listed. However, in some situations setting up a dedicated inventory is overkill.
I often run demos on my laptop with the help of libvirt. Managing 20+ machines that way is annoying when you have no DNS resolution for those. Luckily, with libvirt and NetworkManager, that can be easily solved.
Ansible has an ever growing list of modules. For a single module this raises the question: who is responsible for it? And what is the actual status? Here a new metadata field will most likely be introduced soon. With Ansible getting more and more traction every day, more modules are popping up everywhere – most […]
There are multiple sources where variables for Ansible can be defined. Most of them can be shown via the setup module, but there are more. For example, if you use a dynamic inventory script to access a Satellite server many variables like the organization are provided via the inventory script – and these are not […]
There are multiple sources where variables for Ansible can be defined. Most of them can be shown via the setup module, but there are more. For example, if you use a dynamic inventory script to access a Satellite server many variables like the organization are provided via the inventory script – and these are not … Continue reading [Short Tip] Show all variables of a host
When using Red Hat Virtualization or oVirt together with GLusterFS, there might be a strange error during the first creation of a storage domain: Failed to add Storage Domain xyz. One of the rather easy to fix reasons might be a permission problem: an initial Gluster exported file system belongs to the user root. However, … Continue reading [Short Tip] Fix mount problems in RHV during GlusterFS mounts