AWX Schedules for Autopatching playbooks

AWX Schedules for Autopatching playbooks

So, if you have read my previous posts on autopatching for Windows and Linux templates in our environments:

Windows Post:

Autopatching Windows Templates with ansible
The first thing I have been working on is the autopatching of our golden images that we use for our workflows where we create new virtual machines. So I thought that I should go through that process now in detail. In this post, we will cover the Nutanix Windows Workflow

Linux Post:

Autopatching Linux Templates
If you missed the first post in my series around Windows Template patching, you can find it here: Autopatching Windows Templates with ansibleThe first thing I have been working on is the autopatching of our golden images that we use for our workflows where we create new virtual machines. So

Now you wonder: How do I schedule those to be automatically patched every month? The answer: we use AWX.

So the first thing here: we create the templates according to our playbook layout in the repository containing the playbooks. I have a lot of different templates in AWX for patching.

They use the same playbooks but differ depending on what platform the target is. And how do I choose what platform/OS it should update? On each template, I run it with different extra vars.

So, for example, for Windows 2025 on Nutanix, I start the playbook GDM-patch_ntnx_win_template_2025 job with those extra_vars.

And the same logic for Linux.

Then I schedule the different playbooks to run at different times once a month according to my preferences.

Our Network Operations Center monitors the jobs, and if some of them fail, I get a call or a ticket to fix the issue.

And in that case, it’s nice that we’re always cloning the templates to patch, and if something breaks halfway, the old template is always there for us to continue to use in our workflows to clone VMs. 😄

Thank you for reading :)