Case in shell scripting.

We have used if loop and while loop multiple times and without it no bash script has been completed. But at a times using those loops are very much helpful and you have to use CASE. Let’s see more about case in shell scripting Below is the sample code, which will print the capital after … Read more

Ansible Playbook to start services

Ansible Playbook to start services We have already seen how to run Ansible ad-hoc command now let’s focus on a playbook to start services on your servers, In the example below I have started a crond service but you can use it to suit your needs. If you have multiple host groups then replace hosts: … Read more

How to use Loops in Ansible?

If you are writing code in any programming language there is always some code that is repetitive in nature. Just like any other programming language, Ansible has, its own way to use Loops. Here we will see how to use Loops in Ansible. Using Simple Loops Imagine you have a code where you create a … Read more