How to make APACHE HTTPD Server as Idempotent?
Httpd service is not idempotent in nature, ie it always restarts the service if some changes been made in conf file or not.
With the use of the notify and handler module, we made the httpd service restarts only when there is some change in conf file only.
checking number on TN
checking the server
Now, running the playbook again with no changes in conf file.
so, here handler must not run.
Now, changing the port number in conf file ,
Now the handler will restart the httpd to update the changes made in conf file.
Running the playbook:
Checking the TN if port is working or not
Checking the server.
Therefore, the httpd service has finally been made idempotent.