How does ansible can Guarantee that Server we automated using Ansible is running with valid configuration even after week ??

Hi Everyone,

Now am getting more familiar to Ansible ,Since I am automating my servers using Ansible playbook quit easily.But to be in some more precise manner after adding configuration to remote machine How we can ensure that remote machines are working with right configuration after some time ? If i say even after a week? is their any privilege is available in available in Ansible. Like kind of Ansible module which will do routine check on device and servers configuration and validate them according to valid configurations.

Thanks & Regards,
Shubham

In Ansible you are in the essence saying, this is how I would like this machine to be configured.
And since Ansible is idempotence it will check if the the configuration is correct if not it will change the configuration to match the Ansible code.

So the only thing you would need to do is run the playbook often, then you now the server is running with the Ansible configuration.

Also, you may be able to use ‘check mode’ to verify that your servers are still configured the way you want. http://docs.ansible.com/ansible/playbooks_checkmode.html