🔰 Restarting HTTPD Service is not idempotence in nature and also consume more resources suggest a way to rectify this challenge in Ansible playbook.
Task Description
Restarting HTTPD Service is not idempotence in nature and also consume more resources suggest a way to rectify this challenge in Ansible playbook.
For this task both managed node and controller node are setup on RHEL 8.
2. Add the ip address of the managed node in the inventory.
3. Create the ansible playbook in the controller node.
4. Modules used for this task.
ANSIBLE CODE
5. If you run the ansible playbook first time.
The yellow color indicates that modules are executed.
6. As web pages are copied in the document root and also the web services are started in the managed node.
7. If we try to run again the ansible playbook .
This time we can see that green color appears this shows webservices are not restarted.
Thank you.
Looking for new opportunities in Germany Site Reliability Engineer II @ JP Morgan Chase. @IUDX, @IISC
4yGrt👏👏✨