DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Idempotence in Ansible using handlers for httpd webserver

4 years ago moizalimoomin.medium.com
Idempotence in Ansible using handlers for httpd webserver

Summary: This is a summary of an article originally published by the source. Read the full original article here →

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.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com