Ansible loop control

How has it taken me this long?! Sometimes I feel tremendously silly for overlooking the simplest of answers. I've used loop_control to change the default loop variable, but I've never noticed loop_control can also change the loop label. This is a game changer! Previously, I've mangled data objects…

Ansible Iterate a Subnet

Ansible logic constructs are very simple. There are no for loops, but there is with_sequence. If we can make a list, we can iterate the list. This shows how to make a simple list of host addresses given a subnet (in CIDR notation). --- - hosts: localhost gather_facts:…

K8s Getting Started

Kubernetes (k8s) is wildly popular because it's the sensible next step in virtualization. Or perhaps it's not sensible, but it's definitely where a lot of things have headed. It's all about containers. So what's the difference between a container and "virtualization?" It's a bit like "fat" virtualization vs "skinny" virtualization;…

ansible var ref

What is this, yet another ansible quirk, or have I failed to RTFM closely enough? Either way, this doesn't feel intuitive so to help me understand I ran a little test to determine whether ansible assigns by reference, or assigns by value. Well... the answer is.... both? Here's a small…

Anti-hacking

I was made aware of trouble with a wordpress site – not that there's anything inherently wrong with wordpress, this one just happened to be. It was a non-profit site managed by a team of volunteers, and it was redirecting to a spam-ish canadian pharmacy domain. Investigation found the site to…