In general, idempotence is “the property of certain operations in mathematics and computer science that can be applied multiple times without changing the result beyond the initial application”. For Ansible it means after 1 run of a playbook to set things to a desired state, further runs of the same playbook should result in 0 changes.

Use an automated tool, such as Ansible, and run them frequently and repeatedly to keep machines in line Rebuild machine instances frequently so they don’t have much time to drift from the baseline what are handlers in ansible ?

Step 3: Now when I visit the website with port no 9000 it is working perfectly this is possible with the use of handlers in ansible.

The handlers in ansible provide idempotence nature to configuration changes in ansible.

Related Articles