In this guide we will look at how we can run parallel and asynchronous tasks within your playbooks in order to run your playbook in the most efficient way possible! [WARNING]: TASK: wait for async tasks: The loop variable ‘item’ is already in use. You should set the loop_var value...
[Read More]
Running Your Ansible Playbooks in Parallel and other strategies
A guide about running your ansible PLAYBOOKS in parallel and other playbook execution strategies. Along with more detailed execution strategies like run_once, throttle and forks
We look at how you can execute your Ansible playbooks in parallel as well as other playbook execution strategies.
[Read More]
Ansible Blocks Advance Guide - Simple & Complex Block Loops, Conditionals, Nested Blocks, Block Vars, delegate_to, retries, block with tags, Block Rescue & Always - Examples Included
In this guide we look into many different use cases for Ansible blocks in your playbook. Includes examples on - block loops, block conditionals, nested blocks, using vars in blocks, using delegate_to with block and the usual Block rescue and always examples
Pre-requisites & Setup
I’m using ansible-core 2.14
Ansible Host is running Python 3 and Managed/remote host is running Python 2.7
Ansible Host & Managed/remote host is using Ubuntu
[Read More]
Working with Python scripts in Ansible - with examples
This guide explores that different use cases you might run into when working with python in Ansible
In this article we look at:
Different methods of running your python script in Ansible
Passing parameters to the python script that you run
Dealing with and using the output of your python script
How to run your python script for in different environments
[Read More]
Complete Guide to Ansible Conditionals, Tests, Asserts, When - with examples
For some people a simple playbook is not always practical. So you find that you need some logic in your playbooks for your not so simple use case. Thankfully Ansible provides multiple ways to do this particularly using Jinja in Ansible’s templating.
[Read More]