[Short Tip] Call Ansible or Ansible Playbooks without an inventory

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.

[Short Tip] Retrieve your public IP with Ansible

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 […]

[Short Tip] Show all variables of a host

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

[Short Tip] Fix mount problems in RHV during GlusterFS mounts

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

[Howto] Rebase feature branches in Git/Github

Updating a feature branch to the actual state of the upstream main branch can be troublesome. Here is a workflow that works – at least for me. Developing with Git is amazing, due to the possibilities to work with feature branches, remote repositories and so on. However, at some point, after some hours of development, … Continue reading [Howto] Rebase feature branches in Git/Github

[Howto] Rebase feature branches in Git/Github

Updating a feature branch to the actual state of the upstream main branch can be troublesome. Here is a workflow that works – at least for me. Developing with Git is amazing, due to the possibilities to work with feature branches, remote repositories and so on. However, at some point, after some hours of development, … Continue reading [Howto] Rebase feature branches in Git/Github

[Short Tip] Workaround MIT-SHM error when starting QT/KDE apps with SUDO

Starting GUI programs as root usually is not a problem. In worst case, sudo inside a terminal should do the trick. However, recently I had to start a QT application as sudo from within GNOME. It was the yubikey configuration GUI, a third party tool thus not part of any desktop environment. Executing the app … Continue reading [Short Tip] Workaround MIT-SHM error when starting QT/KDE apps with SUDO

[Short Tip] Call Ansible Tower REST URI – with Ansible

It might sound strange to call the Ansible Tower API right from within Ansible itself. However, if you want to connect several playbooks with each other, or if you user Ansible Tower mainly as an API this indeed makes sense. To me this use case is interesting since it is a way to document how … Continue reading [Short Tip] Call Ansible Tower REST URI – with Ansible

Ways to provide body payload in Ansible’s URI module

Talin to a REST API requires to provide some information, usually in the form of JSON payload. Ansible offers various ways to do that in the URI module in playbooks. In modern applications REST APIs are often the main API to integrate the given APP with the existing infrastructure. REST often requires posting JSON structures … Continue reading Ways to provide body payload in Ansible’s URI module