Suggestion for restarting httpd server doesn’t show the idempotence in Nature.

MD MOQADDAS
Jan 15, 2021

--

This is the code we normally write to restart the httpd service.

For idempotence in nature of httpd service we can use Ansible keyword “register”.

“register” is a keyword it stores all information of a module as

“changed” : true → see this we can put condition for the restarting httpd server when “changed == false” then run as

By using the register keyword we can make restarting httpd server make idempotence in nature.

🔰 ARTH Learner 🔰

--

--

MD MOQADDAS
MD MOQADDAS

No responses yet