Category: Automation

AWX Oddities with MikroTik

Something I just came across recently is I’ve had to switch to using “Machine” credentials with MikroTik RouterOS v7 devices instead of “network” credential types. I’m not 100% sure why this is yet, but something that will maybe help someone facing the same issue. Honestly I don’t have any v6 routers left to check this

Read More
Git for Network Engineers – Part 2

Getting Started In Part 1 we discussed why git for network engineers. In this part of the series we will start discussin how to start using git and creating your first repository. The first thing would be to install git. This process varies by platform, but there are instructions right on the git website for

Read More
Git for Network Engineers – Part 1

Transitioning from a traditional network engineer to an automation engineer can come with a steep learning curve. Terms like git, merge, squash, branch, and rebase can be daunting. While there are many “getting started” tutorials out there for git, it feels like most of them are geared toward programmers and those who have team members

Read More
Backup Cisco, MikroTik, and PaloAlto with Ansible

I have created playbooks for Ansible Network Device Backups. It is important to keep your device configurations backed up in the event of a hardware failure. Check out my GitHub for these Ansible playbooks. Some folks are starting to use Git for device backups as it provides diffs and backup capability. For those who don’t

Read More
AWX Isolated Nodes Broken after AWX Upgrade 

tl;dr: Python2 strikes back! Always use Python3. Ran into this issue after an upgrade of AWX from 14.0.0 to 15.0.1, where jobs will just fail with no output in AWX showing what happened. Just a blank box where stdout normally appears. Well great… Checked /var/log/, journalctl, and any other logging locations I could think of.

Read More
AWX Isolated Node Setup

Isolated nodes in AWX/Tower are used to do work in remote or secured networks. The only connection required is SSH between the “controller” node (the main AWX/Tower instance), and your remote node. This device can now do work for you in this remote network.  The problem with setting these up is that I have yet

Read More
Variable Issues in Ansible

This will be a short post today, feeling pretty dumb. Just learned the hard way that Ansible variable names can not start with numbers. It even says so in the first line of the documentation on variables: https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#creating-valid-variable-names You’ll get some pretty weird output if you try and start them with numbers. Basically it parses

Read More
Linux Patching with Ansible

Today I ran into an issue building a patching playbook for my Linux VMs. I have a mix of Ubuntu, and a couple of CentOS versions. I began with testing against Ubuntu and CentOS 8, and everything worked really well. As soon as I brought a CentOS 7 box into the mix, I started receiving

Read More
AWX LDAP/Active Directory Authentication 

An issue I ran into the other day when trying to setup Active Directory authentication in Ansible AWX, using LDAP auth type. These are a couple things that aren’t exactly called out in the documentation from Red Hat, and might not be obvious to all. You can use ldap:// if you aren’t setup for ldaps://

Read More
Useful Ansible Ad-Hoc Commands

Ansible doesn’t always have to be crazy complex playbooks doing super cool stuff. Sometimes, it’s really useful to get some output from al your devices like versioning, VLANs, IP addresses, etc… Here I plan to collect some of the one-liners I end up using so others can see what’s possible. This will be a dynamic

Read More