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