Interesting Uses of Ansible’s ternary filter

Some time ago I discovered an interesting use of the ternary-filter in Ansible. A ternary-filter in Ansible is a filter that takes three arguments: a condition, a value if the condition is true and an alternative value if the condition is false.

Here’s a simple example straight from Ansible …

more ...

DevOps workflows and reliable automation

The company I work for provides a broad scope of IT services to our customers and to be able to offer the best quality services, we rely heavily on automation, especially Red Hat Ansible. In this blog post, we’ll look at what our workflow looks like when automating with …

more ...

Constructing Ansible variables with the vars-lookup plugin

I have an Ansible role that deploys microservices, of whom I have a list of. The microservices are called foo, bar and baz. I also have a list of stages, called DEV, QA and PROD where the microservices get deployed to.

Of course, every microservice needs to connect to a …

more ...


Testing Ansible roles

We - at the dev-sec.io-team - create Ansible (and Puppet and Chef) roles that harden the security of our Linux-servers. They are meant to be used in production so we try to provide these roles to several different operating systems, including Debian, Ubuntu, RedHat and its derivates.

Manually testing the …

more ...