Networking • Automation • Occasional Podcasting

Category: Ansible

  • Ascender And AWX Custom Dynamic Inventory Scripts

    Ascender And AWX Custom Dynamic Inventory Scripts

    When using inventories in Ascender and AWX it’s often advantageous to take advantage of dynamic inventories. This really just means a way to query a Configuration Management Database(CMDB) for a list of hosts and their variables. There are many ways baked into Ascender to do this with services like Amazon, Google, or VMWare, but what…

  • Passing Ansible Variables In Workflows Using set_stats
    ,

    Passing Ansible Variables In Workflows Using set_stats

    Workflows allow AAP, AWX, and Ascender to visually connect playbooks together. This works great…until you try and pass variables from one job template(playbook and required parts in Ascender) to another. That’s where the set_stats module comes in. It has the ability to pass between workflow jobs, but the documentation doesn’t fully explain how it works,…

  • HTTP Error 401 – Unauthorized with AWX and Oauth to Servicenow on Cloudflare
    , , , ,

    HTTP Error 401 – Unauthorized with AWX and Oauth to Servicenow on Cloudflare

    So I am running CIQ Ascender which is built from the upstream Ansible AWX project(holler at me if you are looking for support), and to protect it as well as give it an SSL cert I use Cloudflare. This works a treat because my install instantly has a valid cert and all is right with…

  • Ansible Config As Code With Network Backups To Git And Point-In-Time Rollback
    , ,

    Ansible Config As Code With Network Backups To Git And Point-In-Time Rollback

    The ask for me to create this was “We want to see network configs backed up to git.” That’s easy, because I’ve done that in the past…but it was done before Execution Environments(EEs), so I need to figure that out. “Oh yeah, and if the configuration changes go sideways we want to be able to…

  • Set Cisco Nexus Interface Description From CDP Using Ansible AAP
    , ,

    Set Cisco Nexus Interface Description From CDP Using Ansible AAP

    A customer recently asked about setting CDP neighbors as interface descriptions on their switches, which is actually a pretty cool idea. I thought, though, that I don’t want just anything set…ya know, like I don’t care if the neighbor is an IP phone, what I really care about are other switches. So I created a…

  • Ansible Looping With Lists And Dictionaries With Advanced Filtering

    Ansible Looping With Lists And Dictionaries With Advanced Filtering

    One of the real strengths of Ansible is it’s ability to loop through information. This can be done to generate reports or configuring network or server kit. The aim of this post is teach you how to loop over various data types be them lists(which are easy) or dictionaries(a little more challenging). Another important piece…

  • , ,

    Adding Local Repository On RHEL – For AAP

    If you want to install Ansible Navigator or Ansible Builder on your machines, you really should be doing it from the Red Hat official files and not via PIP. The bundled Ansible Automation Platform installer includes the RPMs to install both navigator and builder. Here’s a quick and easy way to make the RPM directory…