How to make APACHE HTTPD Server as Idempotent?

Akshayanil
Dec 21, 2020

--

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.

conf file

checking number on TN

netstat -tnlp

checking the server

server running.

Now, running the playbook again with no changes in conf file.
so, here handler must not run.

handler not run,

Now, changing the port number in conf file ,

configuration change

Now the handler will restart the httpd to update the changes made in conf file.

Running the playbook:

The handler runs now.

Checking the TN if port is working or not

Power 8083 running

Checking the server.

Yes running.

Therefore, the httpd service has finally been made idempotent.

--

--

Akshayanil
Akshayanil

No responses yet