How to add multiple conditions for an ansible task? Here are some of the examples which will help you to pick the right one according to your need. Ansible is an open-source market-leading configuration management tool. It’s a complete automation tool that can be used from On-premise to cloud platforms. In some cases, ansible is […]
ansible tutorial
Ansible – How to Prepare template using Variables ? Jinja2
Ansible is very flexible configuration management tool and offers wide range of options to perform certain tasks. I am very often use Jinja2 template option to complete the following tasks. Create configuration files using extra variables Create email templates based on playbook results. Prepare Terraform TF files. Template Config files: 1. Let’s create a new […]
How to Boost Ansible playbook Speed ?
How to increase the ansible playbook execution speed? One who is running the playbook against more than 100 hosts could witness the slowness if it’s not fine-tuned. Ansible has few configurable parameters which can reduce the playbook execution time significantly. As a result of the fine-tuning ansible, playbook execution time has been reduced from 4hours […]
Jenkins- Ansible -Authenticate Server using Protected Passphrase
Ansible is the most widely used configuration management tool. A recent challenge was to authenticate the servers using a protected passphrase. We have a set of servers which can be authenticated only using a passphrase. This article will provide a step by step procedure to authenticate ansible clients using a private key and protected passphrase. […]
Using Date and Timestamp Variable in Ansible Playbook
Timestamp plays a crucial role while automating any job. Timestamp variable would be helpful to capture the current date and time (While gathering facts). In Ansible, we might need to create a file or directory based on the timestamp to make it unique. By default, the ansible engine collects timestamp of the remote systems in […]




