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

43 views
Skip to first unread message

sgam...@criterionnetworks.com

unread,
Mar 30, 2017, 8:03:43 AM3/30/17
to Ansible Project
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

Kai Stian Olstad

unread,
Mar 30, 2017, 2:56:06 PM3/30/17
to ansible...@googlegroups.com
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.

--
Kai Stian Olstad

J Hawkesworth

unread,
Apr 4, 2017, 6:02:29 AM4/4/17
to Ansible Project, ansible-pr...@olstad.com
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
Reply all
Reply to author
Forward
0 new messages