Let’s make Apache webserver services idempotence using Ansible handlers
The title seems ambiguous. Арасhe httрd is а serviсe whiсh helps in deploying web server on the system. The next eye-саtсher is Idemроtenсe. In this article, I would be achieving Apache webserver restart service with the ability of idempotence using ansible handlers So what is Idempotence? The main reason for using ansible is Idempotence as by the ability os idempot e nce ansible save a lot of CPU time which can be get wasted, think of the situation of where we have to scale our server and we have run the same playbook where all the server are added so is the ansible will run the task on the system which are already configured?. The answer is no as it has the intelligence of Idempotence which will guide it whether the task is already been run on that system or not leads to saving so much the resources of the company. But there is some situation where ansible can’t able act Idempotence, For example, while restarting the httpd service it does not follow idempotence. So for such a task, w...