Category: Automation

Ansible/AWX Custom Credential Types

Sometimes in Ansible you need to support legacy devices, or API’s that require hard coded passwords or API strings in your playbooks. One way around this is to use custom credential objects in AWX/Tower. This can keep your playbooks generic for storage in your version control system, and shareable, while keeping your credentials safe. If

Read More
Ansible Inventory Scripts

# TIL It appears that you are required to use a .ini file with inventory scripts in Ansible. If you try and use static variables in the script, it will appear to work when running the raw Python or whatever you’re using to gather the data. It will then fail with seemingly nondescript errors when

Read More
How to debug Ansible

There are a couple of ways to get more information about why a command/playbook is failing. These are listed more or less, in order growing more verbose. This is a pretty long post mostly due to the example output. Debug module in playbook The second most common method is using the debug module in your

Read More
Automation as a Network Engineer

I decided to start writing as I work my way through learning Ansible, Python, Paramiko, and Nornir. I’m a Network Engineer, and looking to start automating network functions and changes. Not so much as Software Defined Networking, but more like scripting for mundane or repetitive tasks throughout networks. Sit back and follow along through my

Read More