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…

Ansible survey foreign EdgeMAX

As we've been improving our systems automation with ansible, that has included bringing 'foreign' devices with unknown states into consistency and management by ansible. This will look at some tricks used to survey and update EdgeMAX routers. First things first is having some idea of what types of equipment are…