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 ...Recently, I found myself needing to incorporate a CODEOWNERS-file to multiple repositories within our Github organization. The objective was to automatically reviewers for pull-requests. And codeowners are a perfect tool for this. This way every colleague in our company can join our Github organization and get write-access to the …
more ...As someone with years of experience using and teaching Ansible I want to share with you how I teach it to my colleagues in the most practical way possible.
However, before I get into the actual content of the training, it should be emphasized how important a functioning and identically …
more ...Since I spent some time today on this, I’d rather write it down. Creating a Prometheus datasource that uses Azure Authentication was not straight forward.
Here’s the end result:
---
- name: Create a datasource in Grafana
hosts: localhost
gather_facts: false
tasks:
- name: Create prometheus datasource
community.grafana.grafana_datasource:
name …
more ...