Ansible tips&tricks
In these pages you will find much of the documentation that I collected over the years. This is by no means a "We say so" document.
I have worked in a number of organizations implementing ansible and automation platform, this is my personal view on "How I would do this".
This site is still a work in progress, check us regularly for updates.. The code is changing as ansible and automation platform changes.
As time passes and things get updated with new versions (Automation platform for example..), I will update the things I'm using actively. All others will get outdated and finally archived. In these older chapters you can find some historic code samples that might interest you, this is why this still exists.
13-05-2026
Updated to the new patch release by deleting and fully reinstalling containerized automation platform.
After installation ran all configuration as code to reinstate the full configuration to the point
before the deletion. Using the code described in this site.
Some statistics:
- 7 organizations
- 8 custom EE's (rebuild and load)
- 6 custom collections (rebuild and load)
- 48 projects
- 58 job templates
- 2 workflows
This took me just 1 hour and 3 minutes..
I'd call this successfull..
Yust writing all knowledge down helps me to burn it into my braincells.
I hope you enjoy this as much as I did writing and learning it.
Enjoy..
Ansible is constantly changing and as my focus is on configuration as code, I will update this constantly, with this exception:
When a new version is released of ansible automation platform, the previous version will no longer be updated, the focus shifts towards the new version.
So in following the itterations in versions of the Ansible Automation Platform, you can follow the evolution of the code created to run configurationas code.
General
Enterprise automation
GitOps automation explaned
Always wanted to know about GitOps?
Read on..
Build an enterprise grade lab on your local computer
Learn how to setup a lab that can test your code like it was in the enterprise, just follow these steps.
Build a homelab on a Proxmox cluster
Follow me as I build a homelab on a few mini PC's using Proxmox.
Configuration As Code
Config as Code automation platform 2.4
Everything and more you need to know about config as code for ansible automation platform 2.4. never lose your configuration again!
Config as Code Automation Platform 2.5
Description of a possible solution for configuration as code for ansible automation platform 2.5.
Config as Code Automation Platform 2.6 (!Read the message)
Description of a possible solution for configuration as code for ansible automation platform 2.6.
Config As Code Automations
Automate changes in configuration as code.
Ansible
Example EDA projects
Description of a functional EDA project in combination with configuration as code.
Inventory construction documentation
Curious how to build an inventory?
Here it is...
Naming convention Ansible
What's to know about naming conventions, I've got mine here
Infrastructure as Code
Howto create infrastructure as Code, a guide to buildingblocks
Testplan template (not testing playbook, but the result!)
When you are confident about your code (linting, syntax_check), are you just as sure about the result?
Optimizing ansible playbooks
Some correct syntax in ansible may take a long time to execute, check here for optimizations
Trigger a job_template from curl in AAP
Why go through the trouble creating webhooks, when it can be so simple..
This site is (since 01-01-2026), hosted on virtual machines, created with ansible code, running on automation platform. The site is now running on 3 linux containers(LXC on proxmox) with nginx, load balanced in a pool through a nginx proxy.
The whole setup is created using ansible and the site is deployed through a gitlab pipeline. The pipeline uses shortlived certificates to copy the new content to the webservers, no users ever login to the webservers.
All in line with the automation principles.
The playbooks used for this installation, will be added later.
