[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

[Howto] Workaround failing MongoDB on RHEL/CentOS 7

MongoDB is often installed right from upstream provided repositories. In such cases with recent updates the service might fail to start via systemctl. A workaround requires some SELinux work. Ansible Tower collects system data inside a MongoDB. Since MongoDB is not part of RHEL/CentOS, it is installed directly form the upstream MongoDB repositories. However, with … Continue reading [Howto] Workaround failing MongoDB on RHEL/CentOS 7

Insights into Ansible: environments of called playbooks

Usually when Ansible Tower executes a playbook everything works just as on the command line. However, in some corner cases the behavior might be different: Ansible Tower runs its playbooks in a specific environment. Different playbook results in Tower vs CLI Ansible is a great tool for automation, and Ansible Tower enhances these capabilities by … Continue reading Insights into Ansible: environments of called playbooks

Useful command line options for ansible-playbook

Ansible provides quite some useful command line options. Most of them are especially interesting during debugging. Background There are three major ways to work with Ansible: launching single tasks with the ansible command executing playbooks viaansible-playbook using Tower to manage and run playbooks While Tower might be the better option to run Ansible in the … Continue reading Useful command line options for ansible-playbook

[Howto] Access Red Hat Satellite REST API via Ansible

As with all tools, Red Hat Satellite offers a REST API. Ansible offers a simple way to access the API. Background Most of the programs and functions developed these days offer a REST API. Red Hat for example usually follows the “API first” methodology with most of the products these days, thus all functions of … Continue reading [Howto] Access Red Hat Satellite REST API via Ansible

[Howto] Looking up external directories in Ansible

Part of Ansible’s power comes from an easy integration with other systems. In this post I will cover how to look up data from external sources like DNS or Redis. Background A tool for automation is only as good as it is capable to integrate it with the already existing environment – thus with other … Continue reading [Howto] Looking up external directories in Ansible

[Short Tip] What not to forget when controlling Windows Servers via Ansible Tower

Ansible does support Windows with an entire set of modules. Thus it is also possible to run Ansible playbooks targeting Windows systems right from Ansible Tower. However, since Windows does works via WinRM and not SSH, the appropriate variables must be set in the definition of the inventory of the machine: The given screenshot shows … Continue reading [Short Tip] What not to forget when controlling Windows Servers via Ansible Tower